Transition Demo
How do I make an transition demo?
What is a transition demo? How do you make a transition demo? This script and codes were developed by Alex Rodrigues on 13 August 2022, Saturday.
Transition Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Transition Demo</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper">
<div class="item"> <img src="https://unsplash.it/700/400?image=1057" alt="" class="item__img" /> <div class="item__content"> <h2 class="item__title">Title 1</h2> <p class="item__desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rerum, alias nihil fugiat debitis ut aliquid porro distinctio earum, temporibus quia necessitatibus. Beatae itaque, esse maxime atque molestias dolores commodi quaerat!</p> </div>
</div>
</div>
</body>
</html>
Transition Demo - Script Codes CSS Codes
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic|Montserrat:400,700);
html { box-sizing: border-box;
}
*,
*:after,
*:before { box-sizing: inherit;
}
.wrapper { background: #89b1da; clear: both; padding: 20px; font-family: "Droid Serif", serif; display: flex;
}
.item { position: relative; width: 500px; margin: 30px auto; border: 10px solid white; overflow: hidden; transform: translate3D(0, 0, 0);
}
.item__img { display: block; width: 100%;
}
.item__content { position: absolute; left: 0; bottom: -100%; width: 100%; height: 80%; background: rgba(0, 0, 0, 0.5); color: white; padding: 20px; line-height: 1.5; transition: all 0.5s 1s;
}
.item:hover .item__content { transition-delay: 0s; bottom: 0;
}
.item__title { position: relative; font-size: 1.5rem; margin: 10px 0; font-weight: bold; top: 1.5em; opacity: 0; transition: all 0.5s 0.5s;
}
.item:hover .item__title { top: 0; opacity: 1; transition-delay: 0.5s;
}
.item__desc { position: relative; top: 1.5em; opacity: 0; transition: all 0.5s 0.25s;
}
.item:hover .item__desc { transition-delay: 0.75s; top: 0; opacity: 1;
}
Developer | Alex Rodrigues |
Username | alex_rodrigues |
Uploaded | August 13, 2022 |
Rating | 3 |
Size | 2,823 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by alex rodrigues | 3,920 Kb |
Responsive Checkout Concept WIP | 6,323 Kb |
Jquery Scroll test | 3,879 Kb |
Mobile Menu Concept WIP | 4,592 Kb |
Responsive Table-less Shopping Cart | 6,637 Kb |
WIP - Checkout Flow Steps Progress mobile concept | 3,960 Kb |
SA_testing | 2,188 Kb |
Playing with Grid | 2,224 Kb |
Learning FlexBox | 2,821 Kb |
Front End Age Gate | 5,806 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Form Labels | Bartuc | 2,717 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
Scoreboard.js basic usage | Tbleckert | 1,733 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Parallax with only CSS | Thulioph | 2,297 Kb |
Drill-down Map | Good886 | 8,484 Kb |
Image Hover | Johnheiner | 3,409 Kb |
A Pen by Patrick Cox | Pcridesagain | 2,899 Kb |
Perforated foil | 0x04 | 2,617 Kb |
Fun form with currentColor | Bnthor | 2,713 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!