Transition Demo

Size
2,823 Kb
Views
20,240

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 Previews

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;
}
Transition Demo - Script Codes
Transition Demo - Script Codes
Home Page Home
Developer Alex Rodrigues
Username alex_rodrigues
Uploaded August 13, 2022
Rating 3
Size 2,823 Kb
Views 20,240
Do you need developer help for Transition Demo?

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!

Alex Rodrigues (alex_rodrigues) Script Codes
Create amazing blog posts with AI!

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!