Pure CSS Giftbox
How do I make an pure css giftbox?
A HUGE button.. What is a pure css giftbox? How do you make a pure css giftbox? This script and codes were developed by Anghelos Coulon on 31 August 2022, Wednesday.
Pure CSS Giftbox - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Pure CSS Giftbox</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div id="circle"> <div id="gift"> <div id="ribbon"></div> <div id="giftbox"></div> </div> </div>
</body> <script src="js/index.js"></script>
</body>
</html>
Pure CSS Giftbox - Script Codes CSS Codes
@-webkit-keyframes spin{ 0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);} 100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}
}
@keyframes spin{ 0%{-webkit-transform:rotate(0deg);transform:rotate(0deg);} 100%{-webkit-transform:rotate(360deg);transform:rotate(360deg);}
}
body{ background-color:lightgrey;
}
#circle{ width:214px; height:214px; background-color:#FFC847; border-radius:214px; position:absolute; top:0;right:0;bottom:0;left:0; margin:auto; box-shadow:0 1px 2px rgba(0,0,0,0.3);
}
#circle:after{ content:""; display:block; border:7px dashed white; width:200px; height:200px; border-radius:200px; -webkit-animation: spin 30s linear infinite; animation: spin 30s linear infinite;
}
#circle:hover{ background-image:-webkit-radial-gradient(#FFED85, #FFC847 70%); background-image:radial-gradient(#FFED85, #FFC847 70%);
}
#gift{ position:absolute; top:0;right:0;left:0;bottom:0; margin:auto; width:100px; height:125px;
}
#ribbon{ position:relative; width:60px; height:60px; -webkit-transform:rotate(45deg); transform:rotate(45deg); margin:auto; margin-bottom:-38px; border-radius:0 8px 0 8px;
}
#ribbon:before{ content:""; height:24px; width:100%; background-color:#F04D4D; display:block; position:absolute; top:18px; box-shadow:0 0 1px rgba(0,0,0,0.4); border-radius:inherit;
}
#ribbon:after{ content:""; height:100%; width:24px; background-color:#F04D4D; display:block; margin:auto; box-shadow:0 0 1px rgba(0,0,0,0.4); border-radius:inherit;
}
#giftbox{ position:relative; margin:auto; width:100px; height:100px; background-color:white; border-radius:2px; box-shadow:0 0 1px rgba(0,0,0,0.4); overflow:hidden;
}
#giftbox:before{ content:""; height:24%; width:100%; background-color:#F04D4D; display:block; position:absolute; top:38%; box-shadow:inherit;
}
#giftbox:after{ content:""; height:100%; width:24%; background-color:#F04D4D; display:block; margin:auto; box-shadow:inherit;
}
Pure CSS Giftbox - Script Codes JS Codes
/* Rounded dashed borders don't work on firefox */
Developer | Anghelos Coulon |
Username | anguo |
Uploaded | August 31, 2022 |
Rating | 3 |
Size | 2,082 Kb |
Views | 127,512 |
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 |
Night reading mode | 3,048 Kb |
Rotating oven - Animated SVG | 5,541 Kb |
Pistachio skin remover machine, animated SVG | 12,670 Kb |
Pistachio pattern | 2,502 Kb |
Sheji | 2,287 Kb |
Lemon | 4,621 Kb |
Simple always-visible comment indicator | 3,250 Kb |
Donate Button With CSS Animated God Rays | 2,561 Kb |
CSS Gas Flame Animation | 1,956 Kb |
Ripple | 2,093 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 |
Spin | Elalemanyo | 8,262 Kb |
HTML5 Video Autoplay | Zivcos | 1,352 Kb |
Fun animations with CSS3 | Minimalmonkey | 2,360 Kb |
Pure CSS Tooltips | Mobius1 | 2,271 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
JQuery FullScreen Overlay | _codemics | 2,252 Kb |
LeMandinque | Aadesida | 9,046 Kb |
Mini Profile | Frytyler | 3,828 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Out of the blue | Giaco | 2,537 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!