A Pen by Andrew Kirchmyer on CodePen.
Created
November 17, 2013 03:49
-
-
Save akirchmyer/7508858 to your computer and use it in GitHub Desktop.
A Pen by Andrew Kirchmyer.
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
| <div class="my-ellipse"></div> | |
| Hover and notice that the ellipse is preserved with a new width and height |
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
| .my-ellipse { | |
| height: 50px; | |
| width: 100px; | |
| border-radius: 50%; | |
| background-color: yellow; | |
| } | |
| .my-ellipse:hover { | |
| height: 40px; | |
| width: 200px; | |
| transition: all 2s ease-in; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment