Skip to content

lilyhoratio/DOM-II

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOM II - Event Exploration

Fun Bus wants you to make their site more interactive. They are relying on you to provide 10 unique events to enhance their site. Explore the many events available to you by using the MDN events reference.

Task 1: Set Up LESS Preprocessor

  • Verify that you have LESS installed correctly by running lessc -v in your terminal, if you don't get a version message back, reach out to your project manager for help.

  • Open your terminal and navigate to your preprocessing project by using the cd command

  • Once in your project's root folder, run the following command less-watch-compiler less css index.less

  • Verify your compiler is working correctly by changing the background-color on the html selector to red in your index.less file.

  • Once you see the red screen, you can delete that style and you're ready to start on the next task

Task 2: Create Unique Event Listeners

  • Using your index.js file, create 10 unique event listeners. using your creativity to make the Fun Bus site more interactive. Here are some unique events you could try to use:
    • mouseover
    • keydown
    • wheel
    • drag / drop
    • load
    • focus
    • resize
    • scroll
    • select
    • dblclick

Using the 10 unique events, find ways to update the DOM in creative ways. For example you could change colors, animate objects, remove objects, etc.

  • Nest two similar events somewhere in the site and prevent the event propagation properly
  • Stop the navigation from items from refreshing the page by using preventDefault()

Stretch Task:

  • Go look at GSAP and implement the animations found in that library with your custom events.

Stretch assignment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 59.7%
  • HTML 23.6%
  • JavaScript 16.7%