shakil97bd

Usage of hover css

Oct 2nd, 2014
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.11 KB | None | 0 0
  1. ***********************How to Use Hover.css***************************
  2.  
  3. First download the hover.css file from github :  https://github.com/ILunn/Hoveran
  4.  
  5. Than How can be we use it..................
  6.  
  7. If you plan on only using one or several effects, it's better practice to copy and paste an effect into your own stylesheet, so a user doesn't have to download hover.css in its entirety.
  8.  
  9. For that fllow the below step.........
  10.  
  11. 1. Download hover.css
  12. 2. In hover.css, find the 'Grow' CSS.
  13.  
  14. /* Grow */
  15.  
  16. .grow {
  17.   display: inline-block;
  18.   -webkit-transition-duration: 0.3s;
  19.   transition-duration: 0.3s;
  20.   -webkit-transition-property: -webkit-transform;
  21.   transition-property: transform;
  22.   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  23.   -webkit-transform: translateZ(0);
  24.   -ms-transform: translateZ(0);
  25.   transform: translateZ(0);
  26.   box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  27. }
  28.  
  29. .grow:hover {
  30.   -webkit-transform: scale(1.1);
  31.   -ms-transform: scale(1.1);
  32.   transform: scale(1.1);
  33. }
  34.  
  35.  
  36.  
  37.  
  38. 3. Copy this effect and then paste it into your own stylesheet.
  39. 4. In the HTML file which you'd like the effect to appear, add the class of .grow to your chosen element.
  40.  
  41.         before applying hover.css effect::  <a class="button">Add to Basket</a>
  42.  
  43.         after applying hover.css effect::   <a class="button grow">Add to Basket</a>
  44.  
  45.  
  46. like That you can add all of the effect in your website.
  47.  
  48. **********************************
  49.  
  50. If you plan on using many of hover.css' effects on your website, you may like to reference the entire hover.css stylesheet.
  51.  
  52. 1. Download hover-min.css
  53. 2. Add hover-min.css to your websites files, in a directory named css for example.
  54. 3. Reference hover-min.css in <head> of the HTML page you'd like to add hover.css effects to:
  55.  
  56.             <head>
  57.                 <link href="css/hover-min.css" rel="stylesheet">
  58.             </head>
  59.  
  60. 4.In the HTML file which you'd like the effect to appear, add the class of .grow to your chosen element.like bellow....
  61.  
  62.  
  63.         before applying hover.css effect::  <a class="button">Add to Basket</a>
  64.  
  65.         after applying hover.css effect::   <a class="button grow">Add to Basket</a>
Add Comment
Please, Sign In to add comment