Rose coding
Rose coding
Html
<!DOCTYPE html>
<html>
<head>
<title>Rose</title>
</head>
<body>
<div class=”container”>
<div class=”glass”></div>
<div class=”thorns”>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class=”glow”></div>
<div class=”rose-leaves”>
<div></div>
<div></div>
</div>
<div class=”rose-petals”>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class=”sparkles”>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>
CSS
:root{
--primary: #fff;
--bg-envelope-color: #f5edd1;
--envelope-tab: #ecdeb8;
--envelope-cover: #e6cfa7;
--shadow-color: rgba(0, 0, 0, 0.2);
--txt-color: #444;
Body{
Margin: 0;
Padding: 0;
Box-sizing: border-box;
Background: var(--bg-color);
Display: flex;
Align-items: center;
Justify-content: center;
.container {
Height: 100vh;
Display: grid;
Place-items: center;
Background: var(--bg-envelope-color);
Position: relative;
Width: 300px;
Height: 230px;
}
.envelope-wrapper > .envelope::before {
Content: “”;
Position: absolute;
Top: 0;
z-index: 2;
transform-origin: top;
Content: “”;
Position: absolute;
z-index: 2;
width: 0px;
height: 0px;
Position: absolute;
Right: 20%;
Bottom: 0;
Width: 54%;
Height: 80%;
Background: var(--primary);
Text-align: center;
Font-family: ‘Gill Sans’, ‘Gill Sans MT’, Calibri, ‘Trebuchet MS’, sans-serif;
Color: var(--txt-color);
Text-align: left;
Font-size: 10px;
.heart {
Position: absolute;
Top: 50%;
Left: 50%;
Width: 15px;
Height: 15px;
Background: var(--heart-color);
z-index: 4;
cursor: pointer;
}
.heart:before,
.heart:after {
Content: “”;
Position: absolute;
Width: 15px;
Height: 15px;
Background-color: var(--heart-color);
Border-radius: 50%;
.heart:before {
Top: -7.5px;
.heart:after {
Right: 7.5px;
Transform: rotateX(180deg);
z-index: 0;
Bottom: 100px;
Transform: scale(1.5);
Transition-delay: 1s;
Transform: rotate(90deg);
Transition-delay: 0.4s;
}