/travel-peru

An exploration in user-driven animation with CSS

Primary LanguageJavaScript

Travel Peru

A Scrolling Wonderland Page, 9/26/18

By Luke Vandekieft

Description

One of the most visually appealing sites I've run across is surprisingly http://www.beargrylls.com . In particular I love that the top elements' positions are based on the user's scroll and move in both directions without moving the overall page's bar. The full page only scrolls once the top box is completely scrolled, and if you scroll to the top again you can reverse the full pseudo-animation. It's very satisfying as a user and poses interesting logistical questions as a developer.

For my website this effect was achieved by creating an absolutely positioned top box, moving fixed position elements based on the top box's scroll position, and then fading out the fixed elements once the full page starts scrolling. There are some glitchy behaviors but since most of them also exist on Bear Grylls' site I still feel good about what was accomplished in three days. The popping colors and clean on-scroll interactivity are highlights for the project.

Setup/Installation Requirements

Live site is at https://travel-peru.firebaseapp.com/

To download & edit do the following:

  • Get file from Github.

    $ git clone https://github.com/lukevandekieft/travel-peru.git
    
  • Install NPM (node package manager) as needed - instructions can be found at https://www.npmjs.com/get-npm .

  • Install necessary webpack dependencies for project.

    $ npm install
    
  • Compile and open webpage in developer mode.

    $ npm run start
    

Technologies Used

  • HTML
  • CSS
  • Sass
  • Webpack

Support and contact details

If you have any concerns or suggestions please contact Luke Vandekieft at vandekie@gmail.com

License

This software is licensed under the MIT License.

Copyright (c) 2018 Luke Vandekieft