Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>
- </title>
- <style>
- div {
- display: block;
- width: 400px;
- height: 200px;
- position: relative;border: solid 1px ;overflow: hidden;
- }
- img {
- max-width: 400px;
- height: auto;
- position: absolute;
- top: 0px;left: 0px;
- display: block;
- bottom: auto;
- transition: all 1s;
- -moz-transition: all 1s;
- }
- div:hover img {bottom: 0px;top: auto}
- </style>
- </head>
- <body>
- <div style="display: block;">
- <img src="n.jpg">
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement