Code Monkey home page Code Monkey logo

nav-bar's Introduction

nav-bar

Users are able to hover and click on links with a slider animation

Key Features


  • Users are able to hover and click on links with a slider animation

SOME CONCERNS

  • IT RESIZES CORRECTLY! BUT NEED TO FIGURE OUT HOW TO CORRECTLY ALIGN THE UNDERLINE ELEMENT WITH THE CITY NAMES
  • SOME THOUGHTS ON THE APPROACH
    • NEED TO RETRIEVE THE CURRENT POSITIONS OF THE CITY NAMES AND CALCULATE THE MARGINLEFT PROPERTY FOR THE UNDERLINE ELEMENT AND ACCUMULATE AND KEEP TRACK OF THE MARGINLEFT AND POSITION AS USERS TRY TO CLICK ON OTHER CITY NAMES (ASSUMING THEY ARE CLICKING FROM LEFT TO RIGHT/VICE VERSA/OR RANDOMLY)
      • MAY CALCULATE THROUGH COMPONENTDIDUPDATE (CHECK COMMENTS TO SEE WHY)

How to use


  • Step 1.
        npm install
  • Step 2.
        npm run build
        or
        npm run dev (to run in dev mode)
  • Step 3. (skip this step if running in dev mode) Open index.html that is in the directory of: build/index.html
  • Step 4. Interact
    • Hover over city names to see the color of the links changing to blue
    • Click on various city names to see an underline animation

Author

Gerret Kubota

nav-bar's People

Contributors

gerretkubota avatar

Watchers

James Cloos avatar  avatar

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.