Created
July 14, 2018 02:22
-
-
Save zeddee/4c313dc0a34eab0afc6068b8a47625f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <style type='text/css'> | |
| .box { | |
| width:200px; | |
| height:200px; | |
| text-align:center; | |
| box-sizing:border-box; | |
| padding:20px; | |
| transition-duration:500ms; | |
| transition-delay:200ms; | |
| transition-property:background,transform,width,box-shadow; | |
| border-radius:5px; | |
| overflow-x:hidden; | |
| } | |
| .box:hover{ | |
| width:90vw; | |
| /*transform:rotate(10deg);*/ | |
| } | |
| #one { | |
| background:hsl(50,100%,50%); | |
| /*transition-timing-function: ease-in-out;*/ | |
| transition-timing-function: cubic-bezier(1,.5,.2,1.41); | |
| } | |
| #one:hover{ | |
| background:hsl(10,100%,50%); | |
| box-shadow:10px 10px 10px hsla(10,100%,50%,.5); | |
| } | |
| #one>p{ | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="one" class="box"> | |
| <p> | |
| <em>C'est une boite.</em></p> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment