diff --git a/snippets/hover-shadow-box-animation.md b/snippets/hover-shadow-box-animation.md index 9dbe0210b..50e40804f 100644 --- a/snippets/hover-shadow-box-animation.md +++ b/snippets/hover-shadow-box-animation.md @@ -6,7 +6,7 @@ Creates a shadow box around the text whern it is hovered. #### HTML ```html -

Box it!

+

Box it!

``` #### CSS @@ -15,26 +15,22 @@ Creates a shadow box around the text whern it is hovered. .hover-shadow-box-animation{ display: inline-block; vertical-align: middle; - -webkit-transform:perspective(1px) translateZ(0); transform: perspective(1px) translateZ(0); box-shadow: 0 0 1px transparent; margin: 10px; - -webkit-transition-duration : 0.3s; transition-duration: 0.3s; - -webkit-transition-property: box-shadow, transform; transition-property: box-shadow, transform; } .hover-shadow-box-animation:hover, .hover-shadow-box-animation:focus, .hover-shadow-box-animation:active{ box-shadow: 1px 10px 10px -10px rgba(0,0,24,0.5); - -webkit-transform: scale(1.2); transform: scale(1.2); } ``` #### Demo
-

Box it! -

+

Box it! +

@@ -76,3 +68,6 @@ Creates a shadow box around the text whern it is hovered. * https://caniuse.com/#feat=transforms3d * https://caniuse.com/#feat=css-transitions + + +