Modern CSS Cards - GeeksforGeeks (2024)

* { box-sizing: border-box;}body { display: grid; place-items: center;}.container { display: grid; grid-gap: 1rem; padding: 1rem; grid-template-columns: repeat(4, 1fr);}.card { position: relative; display: flex; align-items: flex-end; overflow: hidden; text-align: center; color: white; border-radius: 10px; box-shadow:  0 1px 1px rgba(0, 0, 0, 0.1),  0 2px 2px rgba(0, 0, 0, 0.1),  0 4px 4px rgba(0, 0, 0, 0.1),  0 8px 8px rgba(0, 0, 0, 0.1),  0 16px 16px rgba(0, 0, 0, 0.1); height: 350px;}.card:before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 110%; background-size: cover; background-position: 0 0; transition: transform  calc(var(850ms) * 1.5)  var(cubic-bezier(0.19, 1, 0.22, 1));}.card:after { content: ""; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 200%; background-image: linear-gradient(  to bottom, rgba(0, 0, 0, 0) 0%,  rgba(0, 0, 0, 0.009) 11.7%,  rgba(0, 0, 0, 0.034) 22.1%,  rgba(0, 0, 0, 0.072) 31.2%,  rgba(0, 0, 0, 0.123) 39.4%,  rgba(0, 0, 0, 0.182) 46.6%,  rgba(0, 0, 0, 0.249) 53.1%,  rgba(0, 0, 0, 0.32) 58.9%,  rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%,  rgba(0, 0, 0, 0.54) 74.1%,  rgba(0, 0, 0, 0.607) 78.8%,  rgba(0, 0, 0, 0.668) 83.6%,  rgba(0, 0, 0, 0.721) 88.7%,  rgba(0, 0, 0, 0.762) 94.1%,  rgba(0, 0, 0, 0.79) 100%); transform: translateY(-50%); transition: transform calc(var(850ms) * 2)  var(cubic-bezier(0.19, 1, 0.22, 1));}.card:nth-child(1):before { background-image: linear-gradient( to bottom right, #0F2027, #2C5364);}.card:nth-child(2):before { background-image: linear-gradient( to bottom right, #333333, #dd1818);}.card:nth-child(3):before { background-image: linear-gradient( to bottom right, #0f0c29, #24243e);}.card:nth-child(4):before { background-image: linear-gradient( to bottom right, #000046, #1CB5E0);}.content { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 1rem; transition: transform var(850ms)  var(cubic-bezier(0.19, 1, 0.22, 1)); z-index: 1;}.title { font-size: 1.3rem; font-weight: bold; line-height: 1.2;}.data { margin-top: 1rem; font-size: 1.125rem; font-style: italic; line-height: 1.35;}.card:after { transform: translateY(0);}.content { transform: translateY(calc(100% - 4.5rem));}.content>*:not(.title) { opacity: 0; transform: translateY(1rem); transition: transform var(850ms)  var(cubic-bezier(0.19, 1, 0.22, 1)),  opacity var(850ms)  var(cubic-bezier(0.19, 1, 0.22, 1));}.card:hover,.card:focus-within { align-items: center;}.card:hover:before,.card:focus-within:before { transform: translateY(-4%);}.card:hover:after,.card:focus-within:after { transform: translateY(-50%);}.card:hover .content,.card:focus-within .content { transform: translateY(0);}.card:hover .content>*:not(.title),.card:focus-within .content>*:not(.title) { opacity: 1; transform: translateY(0); transition-delay: calc(var(850ms) / 8);}
Modern CSS Cards - GeeksforGeeks (2024)
Top Articles
How does the college course credit transfer process work?
Discover thousands of collaborative articles on 2500+ skills
Evil Dead Movies In Order & Timeline
Victor Spizzirri Linkedin
Wordscapes Level 6030
Air Canada bullish about its prospects as recovery gains steam
Exam With A Social Studies Section Crossword
Kobold Beast Tribe Guide and Rewards
Polyhaven Hdri
Cosentyx® 75 mg Injektionslösung in einer Fertigspritze - PatientenInfo-Service
Best Private Elementary Schools In Virginia
Gt Transfer Equivalency
litter - tłumaczenie słowa – słownik angielsko-polski Ling.pl
Oriellys St James Mn
Unit 1 Lesson 5 Practice Problems Answer Key
Aspen.sprout Forum
The fabulous trio of the Miller sisters
Tcu Jaggaer
Why Is 365 Market Troy Mi On My Bank Statement
Ruse For Crashing Family Reunions Crossword
Aldi Bruce B Downs
Isaidup
Rochester Ny Missed Connections
Rubber Ducks Akron Score
Globle Answer March 1 2023
Netwerk van %naam%, analyse van %nb_relaties% relaties
Carroway Funeral Home Obituaries Lufkin
Duke University Transcript Request
Housing Intranet Unt
Suspect may have staked out Trump's golf course for 12 hours before the apparent assassination attempt
Exploring The Whimsical World Of JellybeansBrains Only
Covalen hiring Ai Annotator - Dutch , Finnish, Japanese , Polish , Swedish in Dublin, County Dublin, Ireland | LinkedIn
Tmka-19829
Msnl Seeds
Housing Intranet Unt
Craigslist Mexicali Cars And Trucks - By Owner
Verizon Outage Cuyahoga Falls Ohio
Bartow Qpublic
Craigslist Rooms For Rent In San Fernando Valley
Random Animal Hybrid Generator Wheel
Hanco*ck County Ms Busted Newspaper
Flappy Bird Cool Math Games
844 386 9815
Learn4Good Job Posting
Www Pig11 Net
Westport gun shops close after confusion over governor's 'essential' business list
Fresno Craglist
Read Love in Orbit - Chapter 2 - Page 974 | MangaBuddy
One Facing Life Maybe Crossword
Booked On The Bayou Houma 2023
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6121

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.