DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Text Hover Card - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Text Hover Card
sachin007
Jan 13, 2026
2
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<p class="note"> Based on this <a href="https://dribbble.com/shots/3127773-Event-Card" target="_blank">dribbble</a> </p> <article class="card"> <div class="thumb"></div> <div class="infos"> <h2 class="title"> new york city <span class="flag"></span> </h2> <h3 class="date">Hello</h3> <h3 class="seats">How are you</h3> <p class="txt"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy </p> <h3 class="details">know more</h3> </div> </article>
1
@font-face { font-family: "Grotesque"; src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Regular.eot"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Regular.ttf"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Regular.woff"); font-weight: normal; } @font-face { font-family: "Grotesque Black"; src: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Black.eot"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Black.ttf"), url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/BrandonGrotesque-Black.woff"); font-weight: bold; } * { box-sizing: border-box; } html, body { font-size: 100%; } body { padding: 0; margin: 0; background: #152536; } a[href] { position: relative; text-decoration: none; color: #d12a6a; text-shadow: 2px 2px 2px #0f1b27; padding-bottom: 3px; font-weight: bold; } a[href]::after { content: ""; position: absolute; left: 0; bottom: 0; background: #ffffff; width: 0; height: 1px; transition: 0.35s cubic-bezier(.17,.67,.5,1.03); } a[href]:hover::after { width: 100%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } .note { margin-top: 30px; color: #ffffff; font-size: 1rem; font-family: "Merriweather", sans-serif; line-height: 1.5; text-align: center; } article.card { position: absolute; left: 50%; top: 50%; width: 350px; height: 350px; transform: translate(-50%, -50%) translateZ(0); border-radius: 3px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); overflow: hidden; } article.card .thumb { width: auto; height: 260px; background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/new-york-city.png") no-repeat center; background-size: cover; border-radius: 3px; } article.card .infos { width: auto; height: 350px; position: relative; padding: 14px 24px; background: #ffffff; transition: 0.4s 0.15s cubic-bezier(.17,.67,.5,1.03); } article.card .infos .title { position: relative; margin: 10px 0; letter-spacing: 3px; color: #152536; font-family: "Grotesque Black", sans-serif; font-size: 1rem; text-transform: uppercase; text-shadow: 0 0 0px #2c4660; } article.card .infos .flag { position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 35px; height: 23px; background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/397014/flag.png") no-repeat top right; background-size: 100% auto; display: inline-block; } article.card .infos .date, article.card .infos .seats { margin-bottom: 10px; text-transform: uppercase; font-size: 0.85rem; color: rgba(21, 37, 54, 0.7); font-family: "Grotesque", sans-serif; } article.card .infos .seats { display: inline-block; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, 0.2); opacity: 0; transition: 0.5s 0.25s cubic-bezier(.17,.67,.5,1.03); } article.card .infos .txt { font-family: "Merriweather", sans-serif; line-height: 2; font-size: 0.95rem; color: rgba(21, 37, 54, 0.7); opacity: 0; transition: 0.5s 0.25s cubic-bezier(.17,.67,.5,1.03); } article.card .infos .details { position: absolute; left: 0; bottom: 0; margin: 10px 0; padding: 20px 24px; letter-spacing: 1px; color: #4e958b; font-family: "Grotesque Black", sans-serif; font-size: 0.9rem; text-transform: uppercase; cursor: pointer; opacity: 0; transition: 0.5s 0.25s cubic-bezier(.17,.67,.5,1.03); } article.card:hover .infos { transform: translateY(-260px); } article.card:hover .infos .seats, article.card:hover .infos .txt, article.card:hover .infos .details { opacity: 1; }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!