Spring Into CSS Grid
How do I make an spring into css grid?
Demo for a blog post ☀️ 🌧 🦋 Browser support. What is a spring into css grid? How do you make a spring into css grid? This script and codes were developed by Joni Trythall on 02 October 2022, Sunday.
Spring Into CSS Grid - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Spring Into CSS Grid</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="contain"> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/sun.svg" alt="Sun" width="15%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/cloud_copy.svg" alt="Cloud" width="30%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/cloud_copy.svg" alt="Cloud" width="30%" /> </div> <div class="spring"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/rain.svg" alt="Rain" width="60%" /></div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/rain.svg" alt="Rain" width="60%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/rain.svg" alt="Rain" width="27%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/dragonfly.svg" alt="Dragonfly" width="30%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/butterfly.svg" alt="Butterfly" width="30%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/dragonfly.svg" alt="Dragonfly" width="30%" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/butterfly.svg" alt="Butterfly" width="30%"/> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/flower1.svg" alt="First flower" /> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/flower2.svg" alt="Second flower" /> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/flower3.svg" alt="Third flower" /> </div> <div class="spring"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/80625/flowers2.svg" alt="Fourth flower" /> </div>
</div>
</body>
</html>
Spring Into CSS Grid - Script Codes CSS Codes
body { border: 2px solid #FB9C6F;
}
.contain { display: -ms-grid; display: grid; -ms-grid-columns: (1fr)[4]; grid-template-columns: repeat(4, 1fr); -ms-grid-rows: (2fr)[3] 1fr 4fr; grid-template-rows: repeat(3, 2fr) 1fr 4fr; grid-gap: 2px; background-color: #FB9C6F;
}
.spring { padding: 2em; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; background-color: #FFF;
}
.spring:nth-child(1) { grid-column: 1 / 5;
}
.spring:nth-child(2) { grid-column: 1 / 3;
}
.spring:nth-child(3) { grid-column: 3 / 5;
}
.spring:nth-child(4) { grid-column: 1 / 2;
}
.spring:nth-child(5) { grid-column: 2 / 3;
}
.spring:nth-child(6) { grid-column: 3 / 5;
}
.spring:nth-child(11) { grid-column: 1 / 4; -ms-flex-pack: distribute; justify-content: space-around;
}
.spring:nth-child(12) { grid-column: 4 / 5;
}
@media (max-width: 550px) { .contain { display: block; } .spring:nth-child(3), .spring:nth-child(5), .spring:nth-child(6), .spring:nth-child(7), .spring:nth-child(8), .spring:nth-child(11) { display: none; } img { width: 30%; }
}
Developer | Joni Trythall |
Username | jonitrythall |
Uploaded | October 02, 2022 |
Rating | 4 |
Size | 2,630 Kb |
Views | 16,192 |
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 |
Brian The CSS Bee | 3,922 Kb |
Bounce Delay Loader | 2,894 Kb |
Weird Circle Loader | 2,792 Kb |
Hinged Twitter Button | 3,761 Kb |
Flexbox Tinkering | 1,796 Kb |
Frosted Glass Quote | 2,591 Kb |
CSS Alarm Clock | 3,302 Kb |
Meat Selection | 2,169 Kb |
Unite Loader | 2,630 Kb |
Animated Shopping Cart Icons | 7,610 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 |
We Simplify animation | Meodai | 48,169 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Awesome Full Page Menu Nav | Ey_intuitive | 4,194 Kb |
Minimal Menu | Achudars | 3,430 Kb |
Button shaking | SusanneLundblad | 2,227 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!