Created
March 14, 2019 23:27
-
-
Save anandprabhakar0507/b2ac132c63a9c43c30cd8f4eeb9d7b41 to your computer and use it in GitHub Desktop.
Revisions
-
anandprabhakar0507 created this gist
Mar 14, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ aMqgZx ------ A [Pen](https://codepen.io/anandprabhakar0507/pen/aMqgZx) by [Anand prabhakar](https://codepen.io/anandprabhakar0507) on [CodePen](https://codepen.io). [License](https://codepen.io/anandprabhakar0507/pen/aMqgZx/license). 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ <div class="space"></div> 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ .space{ /* Pass a comma separated list of backgrounds: */ background:url('https://demo.tutorialzine.com/2013/10/css3-features-you-can-finally-use/assets/img/rocket_big.png') no-repeat center 70px, url('https://demo.tutorialzine.com/2013/10/css3-features-you-can-finally-use/assets/img/space.jpg') no-repeat bottom center; width:200px; height:200px; margin: 0 auto; border-radius:3px; /* Animate the positions of both of the backgrounds */ transition:background-position 1s; } .space:hover{ /* The same goes for properties like background-position and repeat */ background-position:35% 20px, top right; }