Skip to content

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

Notifications You must be signed in to change notification settings

CarolinaFledgling/Simple-Landing-Page-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published