Hello bar

Size
3,237 Kb
Views
26,312

How do I make an hello bar?

Original project here: http://designitcodeit.com/i/17. What is a hello bar? How do you make a hello bar? This script and codes were developed by Kasper Mikiewicz on 21 November 2022, Monday.

Hello bar Previews

Hello bar - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hello bar</title> <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! */ body {padding-top: 1px; }
html { background: #fff url(img/bg.png); font-size: 75%; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
/** * Notifications */
.hellobar { background-color: #fd4239; box-shadow: 0 3px 0 #c13832; position: absolute; top: 0; left: 0; right: 0; color: #fdd5d3; text-shadow: 0 1px rgba(0,0,0, .3); font-size: 14px;
}
.hellobar a { color: #fff; text-decoration: none; }
.hellobar a:hover { text-decoration: underline; }
.hellobar-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 960px;
}
.hellobar-content { overflow: hidden; padding: 7px 0; transition: 0.1s ease;
}
.hellobar-toggle { position: absolute; top: 7px; right: 15px; bottom: 0; z-index: 1; min-width: 9px; min-height: 17px; opacity: 0; cursor: pointer;
}
.hellobar-toggle:checked { top: 0; right: 3px; min-width: 38px; min-height: 30px; }
.hellobar-toggle:checked ~ .hellobar-content { padding: 0; height: 0; }
.hellobar-toggle:checked ~ .hellobar-arrow:after { top: 7px; left: 16px; box-shadow: none; }
.hellobar-toggle:checked ~ .hellobar-arrow:before { position: absolute; top: 15px; left: 11px; border-color: #c13832 transparent transparent transparent; border-width: 8px 8px 0 8px; box-shadow: none;
}
.hellobar-toggle:checked ~ .hellobar-arrow { top: 0; right: 0; width: 38px; height: 30px; border: 3px solid #c2332c; border-top: 0; border-radius: 0 0 3px 3px;
}
.hellobar-arrow { position: absolute; top: 7px; right: 15px; background-color: #fd4239;
}
.hellobar-arrow:before { display: block; width: 0px; height: 0px; border-color: transparent transparent #c13832 transparent; border-style: solid; border-width: 0 8px 8px 8px; box-shadow: 0 1px 0 rgba(255,255,255,0.2); content: '';
}
.hellobar-arrow:after { position: absolute; left: 5px; display: block; width: 6px; height: 8px; background-color: #c13832; box-shadow: 0 1px 0 rgba(255,255,255,0.2); content: '';
}
.hellobar-toggle:hover ~ .hellobar-arrow:after { background-color: #7d2b27; }
.hellobar-toggle:hover ~ .hellobar-arrow:before { border-bottom-color: #7d2b27; border-top-color: #7d2b27; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="hellobar"> <div class="hellobar-wrap"> <input type="checkbox" class="hellobar-toggle"> <a href="#" class="hellobar-arrow"></a> <div class="hellobar-content">Some catchy text goes here! Also make sure to visit <a href="http://designitcodeit.com">Design it & Code it</a> for more cool stuff. </div> </div>
</div> <script src="js/index.js"></script>
</body>
</html>

Hello bar - Script Codes CSS Codes

body {padding-top: 1px; }
html { background: #fff url(img/bg.png); font-size: 75%; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
/** * Notifications */
.hellobar { background-color: #fd4239; box-shadow: 0 3px 0 #c13832; position: absolute; top: 0; left: 0; right: 0; color: #fdd5d3; text-shadow: 0 1px rgba(0,0,0, .3); font-size: 14px;
}
.hellobar a { color: #fff; text-decoration: none; }
.hellobar a:hover { text-decoration: underline; }
.hellobar-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 960px;
}
.hellobar-content { overflow: hidden; padding: 7px 0; transition: 0.1s ease;
}
.hellobar-toggle { position: absolute; top: 7px; right: 15px; bottom: 0; z-index: 1; min-width: 9px; min-height: 17px; opacity: 0; cursor: pointer;
}
.hellobar-toggle:checked { top: 0; right: 3px; min-width: 38px; min-height: 30px; }
.hellobar-toggle:checked ~ .hellobar-content { padding: 0; height: 0; }
.hellobar-toggle:checked ~ .hellobar-arrow:after { top: 7px; left: 16px; box-shadow: none; }
.hellobar-toggle:checked ~ .hellobar-arrow:before { position: absolute; top: 15px; left: 11px; border-color: #c13832 transparent transparent transparent; border-width: 8px 8px 0 8px; box-shadow: none;
}
.hellobar-toggle:checked ~ .hellobar-arrow { top: 0; right: 0; width: 38px; height: 30px; border: 3px solid #c2332c; border-top: 0; border-radius: 0 0 3px 3px;
}
.hellobar-arrow { position: absolute; top: 7px; right: 15px; background-color: #fd4239;
}
.hellobar-arrow:before { display: block; width: 0px; height: 0px; border-color: transparent transparent #c13832 transparent; border-style: solid; border-width: 0 8px 8px 8px; box-shadow: 0 1px 0 rgba(255,255,255,0.2); content: '';
}
.hellobar-arrow:after { position: absolute; left: 5px; display: block; width: 6px; height: 8px; background-color: #c13832; box-shadow: 0 1px 0 rgba(255,255,255,0.2); content: '';
}
.hellobar-toggle:hover ~ .hellobar-arrow:after { background-color: #7d2b27; }
.hellobar-toggle:hover ~ .hellobar-arrow:before { border-bottom-color: #7d2b27; border-top-color: #7d2b27; }

Hello bar - Script Codes JS Codes

/* * http://designitcodeit.com/i/17 */
Hello bar - Script Codes
Hello bar - Script Codes
Home Page Home
Developer Kasper Mikiewicz
Username Idered
Uploaded November 21, 2022
Rating 3
Size 3,237 Kb
Views 26,312
Do you need developer help for Hello bar?

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!

Kasper Mikiewicz (Idered) Script Codes
Create amazing captions 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!