Giter Club home page Giter Club logo

hoverslippery's Introduction

HoverSlippery

The jQuery plugin for doing cool hovers on inline navigations

Install

bower install hoverSlippery

How to use

  • Include jquery
  • Include hoverslippery.js file into the index.html
  <script type="text/javascript" src="hoverslippery.js"></script> 

or include minified file

  <script type="text/javascript" src="hoverslippery.min.js"></script> 
  • Init hoverSlippery

HTML One li element must be with class 'active' ```html ```

  CSS

  ul { padding:0;margin:0; }
  li { display: inline-block; }

  Javascript

  $(document).ready(function(){
    $('.forUsePlugin').hoverSlippery();
  })

Options

  {
    
    border: true // If you want bordered slippery
    
    borderTwice: true // Bordered slippery, top and bottom line. border options must be true
    
    underline : true // Bordered slippery, bottom line. border options must be true
    
    overline  : true // Bordered slippery, top line. border options must be true
    
    borderColor : '#BADA55' // Change border color
    
    borderStyle : 'solid' // Change border style. Default: solid
    
    borderWidth : '1px' // Change border width. Default: 1px
    
    bgColor : '#394264' // Change background color. border option must be false. Default: #394264
    
    speed : 300 // Slippery speed. Default: 300
    
    radius : '5px' // Change border radius. Default: 5px. border options must be false.
    
  }

Try demo

hoverslippery's People

Contributors

hastalavistababy avatar l-u-k-a 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.