Happy Holidays

Developer
Size
3,260 Kb
Views
42,504

How do I make an happy holidays?

Had an idea to do a fun, simple CSS driven "Happy Holidays" Pen. Here is what I came up with after a couple hours of tinkering around. . What is a happy holidays? How do you make a happy holidays? This script and codes were developed by Tim Ruby on 03 July 2022, Sunday.

Happy Holidays Previews

Happy Holidays - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Happy Holidays</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper"> <hr /> <section> <div class="light"> <div id="bulb" class="one"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="two"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="three"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="four"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="five"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="six"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="seven"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="seven"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="seven"></div> <div id="base"></div> </div> <div class="light"> <div id="bulb" class="seven"></div> <div id="base"></div> </div> <div class="cf"></div> <h1>Happy Holidays Everyone!</h1> <p>Hope You All Have An Amazing Holiday Season &ndash; Tim</p> </section> <section id="forrest"> <div class="tree left bump"></div> <div class="tree left"></div> <div class="tree left bump"></div> <div class="tree left"></div> <div class="tree left bump"></div> <div class="tree left"></div> <div class="tree left bump"></div> <div class="tree left"></div> <div class="tree left bump"></div> <div class="cf"></div> </section>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Happy Holidays - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Mountains+of+Christmas:400,700);
.cf:before,
.cf:after { content: " "; /* 1 */ display: table; /* 2 */
}
.cf:after { clear: both;
}
.cf { *zoom: 1;
}
body { position: fixed; z-index: -999; margin: 0; padding: 0; background-color: #5c6d7e; height: 100%; width: 100%; font-family: 'Mountains of Christmas', cursive; color: #FFF;
}
hr { position: absolute; top: 32px; border: none; border-bottom: solid 2px #94aac0; width: 100%;
}
h1 { display: block; font-size: 80px; text-align: center; margin-top: 20px; text-shadow: 1px 2px 0px #5198c7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
p { display: block; font-size: 30px; margin: 40px auto; text-align: center; text-shadow: 1px 1px 0px #5198c7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
.wrapper { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 960px; margin: 20px auto; background-color: #d9f5ff; border: solid 10px white; -webkit-box-shadow: 0 12px 6px -6px #2c3d50; -moz-box-shadow: 0 12px 6px -6px #2c3d50; box-shadow: 0 12px 6px -6px #2c3d50; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px 20px 0 0;
}
section { margin: 135px auto; width: 960px; -webkit-border-radius: 20px; -moz-border-radius: 20px; border-radius: 20px;
}
.light { float: left; width: 70px; margin-right: 26px; -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg);
}
.light:last-of-type { margin-right: 0; }
#bulb { position: relative; top: 90px; z-index: 1000; margin: 0 auto; width: 30px; height: 60px; -webkit-border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%; border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
}
#base { position: relative; left: 50%; bottom: -85px; z-index: 100; margin-left: -8px; width: 16px; height: 8px; border-radius: 4px; background-color: #f0d135;
}
#base:before { content: ""; position: absolute; left: 50%; bottom: -8px; z-index: 10; margin-left: -6px; width: 12px; height: 6px; border-radius: 3px; background-color: #f0d135; border-bottom: solid 2px yellow;
}
#base:after { content: ""; position: absolute; left: 50%; z-index: 1; bottom: -12px; margin-left: -3px; width: 6px; height: 6px; border-radius: 6px; background-color: #915e20;
}
.one, .two, .three, .four, .five, .six, .seven { background-color: #04cd72; }
/* ------------------------------------
Animations
-------------------------------------*/
/* First Light Bulb */
.one, .two, .three, .four, .five, .six, .seven { animation: hohoho 4s infinite; -webkit-animation: hohoho 4s infinite; /* Safari and Chrome */
}
@keyframes hohoho
{
0% {background: #04cd72; }
25% {background: #ea4b3b; }
50% {background: #ce6055; }
100% {background: #2e98db; }
}
@-webkit-keyframes hohoho /* Safari and Chrome */
{
0% {background: #04cd72; }
25% {background: #ea4b3b; }
50% {background: #ce6055; }
100% {background: #2e98db; }
}
/* Forrest Through the Trees */
#forrest { position: absolute; z-index: 100; margin: 0 auto 0 -480px; left: 50%; bottom: 0px; width: 960px; height: 200px; background-color: #fff; border-radius: 0 70% 0 0;
}
#forrest:before { position: absolute; z-index: 10; width: 960px; height: 200px; content: ""; background-color: #d7ebff; border-radius: 70% 0 0 0;
}
.tree { position: relative; z-index: 100; bottom: 50px; left: 10px; width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 150px solid #47be7f ;
}
.tree:before { position: absolute; bottom: -170px; left: -10px; content: ""; width: 20px; height: 20px; background-color: #4b3a28;
}
.tree:after { position: absolute; bottom: -75px; left: -30px; width: 0; content: ""; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 100px solid #47be7f;
}
.left { float: left; margin-right: 5px; }
.bump { margin-top: 50px; } 

Happy Holidays - Script Codes JS Codes

// Holiday Pen by Tim Ruby - http://timruby.me
// TimmRuby on Twitter
Happy Holidays - Script Codes
Happy Holidays - Script Codes
Home Page Home
Developer Tim Ruby
Username TimRuby
Uploaded July 03, 2022
Rating 3
Size 3,260 Kb
Views 42,504
Do you need developer help for Happy Holidays?

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!

Tim Ruby (TimRuby) Script Codes
Create amazing love letters with AI!

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!