Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 3.15 KB

README.md

File metadata and controls

68 lines (52 loc) · 3.15 KB

UDACITY Front End Web Development Nanodegree
Project 4: Dynamic Landing Page

Using HTML, CSS, JavaScript and DOM manipulation

by Laura Vara

image

Introduction:

This project was created to practice real-world scenarios for DOM manipulation. The functionality of this project shows how to append dynamically by addind data to the DOM, and to show how JavaScript can make a website more dynamic vs a static web page.

Live webpage here: https://vara-co.github.io/landing-page/

This project is meant to be a one page, which smoothly scrolls up and down depending on the element selected in the Navigation Bar. Hovering-over the element will highlight the section, but clicking on it, will create the smooth transitioning scroll.

image The starter Code can be found here: https://github.com/udacity/cd0428-landing-page/ However, edits were made to make this project more personalized.

Content of the repository:

  • CSS Directory
    • styles.css <-- Ladning Page styling file
  • js Directory
    • app.js <-- JavaScript functions to make this landing page dynamic
  • index.html <-- Main HTML content file -.DS_Store
  • CODEOWNERS
  • LICENSE.txt
  • README.md

References & Resources:

DOMContentLoaded:

NavBar:

Mouseover and Mouseout Event Listeners:

.offsetTop:

scrollTo() and behavior:

Adding and Removing active class:

Highlighting the Active Navigation:

getBoudningClientRect():

Viewport Section:

Other relevant resources:

https://dev.to/areeburrub/change-nav-link-s-style-as-you-scroll-4p62