Ronnico Posted September 2, 2013 Share Posted September 2, 2013 Hello, Below is an example from w3schools of a transition. In this example the transition expands to the right. When you change width to height it goes downwards. Is it possible to make the slide/movement to the left or upwards in pure css? -------- <html> <head> <style> div { width:100px; height:100px; background:red; transition:width 2s; -webkit-transition:width 2s; /* Safari */ } div:hover { width:300px; } </style> </head> <body> <p><b>Note:</b> This example does not work in Internet Explorer 9 and earlier versions.</p> <div></div> <p>Hover over the div element above, to see the transition effect.</p> </body> </html> ------- Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now