Giter Site home page Giter Site logo

carolinafledgling / simple-landing-page- Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 2.0 3.3 MB

Simple Landing Page. Following a series of lectures on the theme “JavaScript & the DOM”.

HTML 19.44% SCSS 63.30% JavaScript 17.26%
documentfragment javascript landing-page dom navigation

simple-landing-page-'s Introduction

Simple Landing Page

Description

This project was made independently and without any starter code. It is made with HTML, CSS and JavaScript, following a series of lectures on the theme “JavaScript & the DOM”.

General info

The project required me to build a landing page that uses JavaScript to create an interactive navigational.

Landing Page Behavior

  • Navigation is built dynamically as an unordered list - Manipulating the DOM exercise.
  • Section Active State - It should be clear which section is being viewed while scrolling through the page.
  • Scroll to Anchor - When clicking an item from the navigation menu, the link should scroll to the appropriate section.
  • Adding a scroll to top button on the page that’s only visible when the user scrolls below the fold of the page.

Preview the website live on : DEMO

Screenshots

Code Examples

The DocumentFragment interface: document.createDocumentFragment() is a lightweight version of the Document that stores a piece of document structure like a standard document.

DocumentFragment isn’t part of the active DOM tree ,any changes in document fragment, it doesn't affect the document or performance.

👉 More info: DocumentFragment

Behavior - smooth :behavior: 'smooth' there is a native CSS feature for this: scroll-behavior

For browsers that do not support the scroll-behavior property, you can use JavaScript or a JavaScript library, like jQuery, to create a solution that will work for all browsers

document.querySelector('.hello').scrollIntoView({ behavior: 'smooth' })

👉 More info: smooth scroll behavior

simple-landing-page-'s People

Contributors

carolinafledgling avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

clavelio mrkuxta

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.