Whisky Friday

Size
5,677 Kb
Views
30,360

How do I make an whisky friday?

Inspired by, and animations taken from http://codepen.io/abergin/pen/kIlti. What is a whisky friday? How do you make a whisky friday? This script and codes were developed by Hans Engebretsen on 09 August 2022, Tuesday.

Whisky Friday Previews

Whisky Friday - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Whisky Friday</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/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Over+the+Rainbow);
* { padding: 0; margin: 0;
}
body { position: relative; height: 100%; background-color: #f1f4f6;
}
.friday { bottom: 10px; width: 100%; z-index: 100; color: #e4d0bd; text-align: center; font-size: 31px; letter-spacinag: 1px; font-family: 'Over the Rainbow', cursive; margin-top: 10%;
}
.friday span { margin-left: 90px;
}
.bourbon { position: absolute; top: 0px; left: 47%; opacity: 0.8; display: inline-block; max-width: 50px;
}
.bourbon .cherry { width: 12px; height: 12px; position: absolute; margin-top: 18px; margin-left: 5px; border-radius: 9px; background-color: #cf0000; animation: floatingolive 0.5s ease 0s infinite alternate none; -webkit-animation: floatingolive 0.5s ease 0s infinite alternate none;
}
.bourbon .straw { width: 3px; height: 90px; position: absolute; margin-top: -30px; margin-left: 16px; background-color: #ff4a53; transform: rotate(-17deg); z-index: 0;
}
.bourbon .glass { width: 70px; height: 75px; background-color: #fdf8ea; border-radius: 4px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; position: absolute; border-color: #e4d0bd; border: 3px solid #e4d0bd;
}
.bourbon .glass:before { content: ""; width: 90%; height: 2.5px; display: block; background-color: #e4d0bd; position: absolute; top: 5px; left: 3px; border-radius: 90%;
}
.bourbon .glass:after { content: ""; width: 100%; height: 5px; display: block; background-color: #e4d0bd; position: absolute; top: -4px; border-radius: 95%;
}
.bourbon .contents { background: linear-gradient(45deg, #f33a21 0%, #f8af4f 81%, #ff9913 100%); opacity: .7; width: 59px; height: 50px; margin-top: 25px; margin-left: 8px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; position: absolute; z-index: 5;
}
.bourbon .orange { position: absolute; width: 23px; height: 23px; border: 3px solid #ff7e00; background-color: rgba(255, 126, 0, 0.5); margin-top: -13px; margin-left: 58px; border-radius: 40px;
}
.bourbon .orange:before { width: 5px; height: 18px; position: absolute; margin-top: 10px; margin-left: 11px; z-index: 10; background-color: rgba(255, 126, 0, 0.3); color: transparent; content: ".";
}
.bourbon .ice { position: absolute; width: 80px; margin-top: 15px; opacity: 0.3; z-index: 5;
}
.bourbon .ice div { width: 30px; height: 30px; border-radius: 5px; background-color: rgba(250, 253, 255, 0.6); position: absolute;
}
.bourbon .ice div:nth-of-type(1) { margin-left: 35px; margin-top: 16px; animation: floatingolive 0.6s ease 0.3s infinite alternate none; -webkit-animation: floatingolive 0.6s ease 0.3s infinite alternate none;
}
.bourbon .ice div:nth-of-type(2) { margin-left: 15px; margin-top: 23px; animation: floatingolive 0.6s ease 0.5s infinite alternate none; -webkit-animation: floatingolive 0.6s ease 0.5s infinite alternate none;
}
@keyframes bubble { 100% { -webkit-transform: translate(-3px, 4px); -moz-transform: translate(-3px, 4px); -ms-transform: translate(-3px, 4px); -o-transform: translate(-3px, 4px); transform: translate(-3px, 4px); } 75% { -webkit-transform: translate(5px, -2px); -moz-transform: translate(5px, -2px); -ms-transform: translate(5px, -2px); -o-transform: translate(5px, -2px); transform: translate(5px, -2px); } 50% { -webkit-transform: translate(-3px, 1px); -moz-transform: translate(-3px, 1px); -ms-transform: translate(-3px, 1px); -o-transform: translate(-3px, 1px); transform: translate(-3px, 1px); } 25% { -webkit-transform: translate(3px, 4px); -moz-transform: translate(3px, 4px); -ms-transform: translate(3px, 4px); -o-transform: translate(3px, 4px); transform: translate(3px, 4px); } 0% { -webkit-transform: translate(-5px, -2px); -moz-transform: translate(-5px, -2px); -ms-transform: translate(-5px, -2px); -o-transform: translate(-5px, -2px); transform: translate(-5px, -2px); }
}
@-webkit-keyframes bubble { 100% { -webkit-transform: translate(-3px, 4px); -moz-transform: translate(-3px, 4px); -ms-transform: translate(-3px, 4px); -o-transform: translate(-3px, 4px); transform: translate(-3px, 4px); } 75% { -webkit-transform: translate(5px, -2px); -moz-transform: translate(5px, -2px); -ms-transform: translate(5px, -2px); -o-transform: translate(5px, -2px); transform: translate(5px, -2px); } 50% { -webkit-transform: translate(-3px, 1px); -moz-transform: translate(-3px, 1px); -ms-transform: translate(-3px, 1px); -o-transform: translate(-3px, 1px); transform: translate(-3px, 1px); } 25% { -webkit-transform: translate(3px, 4px); -moz-transform: translate(3px, 4px); -ms-transform: translate(3px, 4px); -o-transform: translate(3px, 4px); transform: translate(3px, 4px); } 0% { -webkit-transform: translate(-5px, -2px); -moz-transform: translate(-5px, -2px); -ms-transform: translate(-5px, -2px); -o-transform: translate(-5px, -2px); transform: translate(-5px, -2px); }
}
@keyframes floatingolive { 100% { -webkit-transform: translate(0px, -4px); -moz-transform: translate(0px, -4px); -ms-transform: translate(0px, -4px); -o-transform: translate(0px, -4px); transform: translate(0px, -4px); } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); }
}
@-webkit-keyframes floatingolive { 100% { -webkit-transform: translate(0px, -4px); -moz-transform: translate(0px, -4px); -ms-transform: translate(0px, -4px); -o-transform: translate(0px, -4px); transform: translate(0px, -4px); } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); }
}
@keyframes bubblebubble { 50% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 40% { -webkit-transform: translate(3px, -90px); -moz-transform: translate(3px, -90px); -ms-transform: translate(3px, -90px); -o-transform: translate(3px, -90px); transform: translate(3px, -90px); opacity: 0.4; } 30% { -webkit-transform: translate(-3px, -60px); -moz-transform: translate(-3px, -60px); -ms-transform: translate(-3px, -60px); -o-transform: translate(-3px, -60px); transform: translate(-3px, -60px); opacity: 0.6; } 100% { opacity: 0; -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); } 90% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 20% { -webkit-transform: translate(4px, -40px); -moz-transform: translate(4px, -40px); -ms-transform: translate(4px, -40px); -o-transform: translate(4px, -40px); transform: translate(4px, -40px); opacity: 0.7; } 10% { -webkit-transform: translate(-4px, -20px); -moz-transform: translate(-4px, -20px); -ms-transform: translate(-4px, -20px); -o-transform: translate(-4px, -20px); transform: translate(-4px, -20px); opacity: 0.8; } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); opacity: 0.9; }
}
@-webkit-keyframes bubblebubble { 50% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 40% { -webkit-transform: translate(3px, -90px); -moz-transform: translate(3px, -90px); -ms-transform: translate(3px, -90px); -o-transform: translate(3px, -90px); transform: translate(3px, -90px); opacity: 0.4; } 30% { -webkit-transform: translate(-3px, -60px); -moz-transform: translate(-3px, -60px); -ms-transform: translate(-3px, -60px); -o-transform: translate(-3px, -60px); transform: translate(-3px, -60px); opacity: 0.6; } 100% { opacity: 0; -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); } 90% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 20% { -webkit-transform: translate(4px, -40px); -moz-transform: translate(4px, -40px); -ms-transform: translate(4px, -40px); -o-transform: translate(4px, -40px); transform: translate(4px, -40px); opacity: 0.7; } 10% { -webkit-transform: translate(-4px, -20px); -moz-transform: translate(-4px, -20px); -ms-transform: translate(-4px, -20px); -o-transform: translate(-4px, -20px); transform: translate(-4px, -20px); opacity: 0.8; } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); opacity: 0.9; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body>
<div class="friday">Whisky <span>friday</span></div>
<div id="animation"> <div class="bourbon"> <div class="glass"></div> <div class="contents"></div> <div class="straw"></div> <div class="cherry"></div> <div class="orange"></div> <div class="ice"> <div></div> <div></div> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Whisky Friday - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Over+the+Rainbow);
* { padding: 0; margin: 0;
}
body { position: relative; height: 100%; background-color: #f1f4f6;
}
.friday { bottom: 10px; width: 100%; z-index: 100; color: #e4d0bd; text-align: center; font-size: 31px; letter-spacinag: 1px; font-family: 'Over the Rainbow', cursive; margin-top: 10%;
}
.friday span { margin-left: 90px;
}
.bourbon { position: absolute; top: 0px; left: 47%; opacity: 0.8; display: inline-block; max-width: 50px;
}
.bourbon .cherry { width: 12px; height: 12px; position: absolute; margin-top: 18px; margin-left: 5px; border-radius: 9px; background-color: #cf0000; animation: floatingolive 0.5s ease 0s infinite alternate none; -webkit-animation: floatingolive 0.5s ease 0s infinite alternate none;
}
.bourbon .straw { width: 3px; height: 90px; position: absolute; margin-top: -30px; margin-left: 16px; background-color: #ff4a53; transform: rotate(-17deg); z-index: 0;
}
.bourbon .glass { width: 70px; height: 75px; background-color: #fdf8ea; border-radius: 4px; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; position: absolute; border-color: #e4d0bd; border: 3px solid #e4d0bd;
}
.bourbon .glass:before { content: ""; width: 90%; height: 2.5px; display: block; background-color: #e4d0bd; position: absolute; top: 5px; left: 3px; border-radius: 90%;
}
.bourbon .glass:after { content: ""; width: 100%; height: 5px; display: block; background-color: #e4d0bd; position: absolute; top: -4px; border-radius: 95%;
}
.bourbon .contents { background: linear-gradient(45deg, #f33a21 0%, #f8af4f 81%, #ff9913 100%); opacity: .7; width: 59px; height: 50px; margin-top: 25px; margin-left: 8px; border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; position: absolute; z-index: 5;
}
.bourbon .orange { position: absolute; width: 23px; height: 23px; border: 3px solid #ff7e00; background-color: rgba(255, 126, 0, 0.5); margin-top: -13px; margin-left: 58px; border-radius: 40px;
}
.bourbon .orange:before { width: 5px; height: 18px; position: absolute; margin-top: 10px; margin-left: 11px; z-index: 10; background-color: rgba(255, 126, 0, 0.3); color: transparent; content: ".";
}
.bourbon .ice { position: absolute; width: 80px; margin-top: 15px; opacity: 0.3; z-index: 5;
}
.bourbon .ice div { width: 30px; height: 30px; border-radius: 5px; background-color: rgba(250, 253, 255, 0.6); position: absolute;
}
.bourbon .ice div:nth-of-type(1) { margin-left: 35px; margin-top: 16px; animation: floatingolive 0.6s ease 0.3s infinite alternate none; -webkit-animation: floatingolive 0.6s ease 0.3s infinite alternate none;
}
.bourbon .ice div:nth-of-type(2) { margin-left: 15px; margin-top: 23px; animation: floatingolive 0.6s ease 0.5s infinite alternate none; -webkit-animation: floatingolive 0.6s ease 0.5s infinite alternate none;
}
@keyframes bubble { 100% { -webkit-transform: translate(-3px, 4px); -moz-transform: translate(-3px, 4px); -ms-transform: translate(-3px, 4px); -o-transform: translate(-3px, 4px); transform: translate(-3px, 4px); } 75% { -webkit-transform: translate(5px, -2px); -moz-transform: translate(5px, -2px); -ms-transform: translate(5px, -2px); -o-transform: translate(5px, -2px); transform: translate(5px, -2px); } 50% { -webkit-transform: translate(-3px, 1px); -moz-transform: translate(-3px, 1px); -ms-transform: translate(-3px, 1px); -o-transform: translate(-3px, 1px); transform: translate(-3px, 1px); } 25% { -webkit-transform: translate(3px, 4px); -moz-transform: translate(3px, 4px); -ms-transform: translate(3px, 4px); -o-transform: translate(3px, 4px); transform: translate(3px, 4px); } 0% { -webkit-transform: translate(-5px, -2px); -moz-transform: translate(-5px, -2px); -ms-transform: translate(-5px, -2px); -o-transform: translate(-5px, -2px); transform: translate(-5px, -2px); }
}
@-webkit-keyframes bubble { 100% { -webkit-transform: translate(-3px, 4px); -moz-transform: translate(-3px, 4px); -ms-transform: translate(-3px, 4px); -o-transform: translate(-3px, 4px); transform: translate(-3px, 4px); } 75% { -webkit-transform: translate(5px, -2px); -moz-transform: translate(5px, -2px); -ms-transform: translate(5px, -2px); -o-transform: translate(5px, -2px); transform: translate(5px, -2px); } 50% { -webkit-transform: translate(-3px, 1px); -moz-transform: translate(-3px, 1px); -ms-transform: translate(-3px, 1px); -o-transform: translate(-3px, 1px); transform: translate(-3px, 1px); } 25% { -webkit-transform: translate(3px, 4px); -moz-transform: translate(3px, 4px); -ms-transform: translate(3px, 4px); -o-transform: translate(3px, 4px); transform: translate(3px, 4px); } 0% { -webkit-transform: translate(-5px, -2px); -moz-transform: translate(-5px, -2px); -ms-transform: translate(-5px, -2px); -o-transform: translate(-5px, -2px); transform: translate(-5px, -2px); }
}
@keyframes floatingolive { 100% { -webkit-transform: translate(0px, -4px); -moz-transform: translate(0px, -4px); -ms-transform: translate(0px, -4px); -o-transform: translate(0px, -4px); transform: translate(0px, -4px); } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); }
}
@-webkit-keyframes floatingolive { 100% { -webkit-transform: translate(0px, -4px); -moz-transform: translate(0px, -4px); -ms-transform: translate(0px, -4px); -o-transform: translate(0px, -4px); transform: translate(0px, -4px); } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); }
}
@keyframes bubblebubble { 50% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 40% { -webkit-transform: translate(3px, -90px); -moz-transform: translate(3px, -90px); -ms-transform: translate(3px, -90px); -o-transform: translate(3px, -90px); transform: translate(3px, -90px); opacity: 0.4; } 30% { -webkit-transform: translate(-3px, -60px); -moz-transform: translate(-3px, -60px); -ms-transform: translate(-3px, -60px); -o-transform: translate(-3px, -60px); transform: translate(-3px, -60px); opacity: 0.6; } 100% { opacity: 0; -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); } 90% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 20% { -webkit-transform: translate(4px, -40px); -moz-transform: translate(4px, -40px); -ms-transform: translate(4px, -40px); -o-transform: translate(4px, -40px); transform: translate(4px, -40px); opacity: 0.7; } 10% { -webkit-transform: translate(-4px, -20px); -moz-transform: translate(-4px, -20px); -ms-transform: translate(-4px, -20px); -o-transform: translate(-4px, -20px); transform: translate(-4px, -20px); opacity: 0.8; } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); opacity: 0.9; }
}
@-webkit-keyframes bubblebubble { 50% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 40% { -webkit-transform: translate(3px, -90px); -moz-transform: translate(3px, -90px); -ms-transform: translate(3px, -90px); -o-transform: translate(3px, -90px); transform: translate(3px, -90px); opacity: 0.4; } 30% { -webkit-transform: translate(-3px, -60px); -moz-transform: translate(-3px, -60px); -ms-transform: translate(-3px, -60px); -o-transform: translate(-3px, -60px); transform: translate(-3px, -60px); opacity: 0.6; } 100% { opacity: 0; -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); } 90% { -webkit-transform: translate(0px, -130px); -moz-transform: translate(0px, -130px); -ms-transform: translate(0px, -130px); -o-transform: translate(0px, -130px); transform: translate(0px, -130px); opacity: 0; } 20% { -webkit-transform: translate(4px, -40px); -moz-transform: translate(4px, -40px); -ms-transform: translate(4px, -40px); -o-transform: translate(4px, -40px); transform: translate(4px, -40px); opacity: 0.7; } 10% { -webkit-transform: translate(-4px, -20px); -moz-transform: translate(-4px, -20px); -ms-transform: translate(-4px, -20px); -o-transform: translate(-4px, -20px); transform: translate(-4px, -20px); opacity: 0.8; } 0% { -webkit-transform: translate(0px, 0px); -moz-transform: translate(0px, 0px); -ms-transform: translate(0px, 0px); -o-transform: translate(0px, 0px); transform: translate(0px, 0px); opacity: 0.9; }
}
Whisky Friday - Script Codes
Whisky Friday - Script Codes
Home Page Home
Developer Hans Engebretsen
Username hans
Uploaded August 09, 2022
Rating 3.5
Size 5,677 Kb
Views 30,360
Do you need developer help for Whisky Friday?

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!

Hans Engebretsen (hans) Script Codes
Create amazing sales emails 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!