Notification 01
Plain HTML and CSS, so it works in any site, Webflow and Framer embeds included.
How to use
- Copy the code below.
- Paste the HTML where you want it, and the <style> part into your CSS, or keep it as it is.
- In Webflow or Framer, paste the whole thing into an Embed block.
- Change the colours and words to yours. Keep the licence note at the foot.
The code
notifications-smooth-seahorse-63.htmlHTML
<div class="notification">
<div class="icon">
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" version="1.1" class="icon" viewBox="0 0 1024 1024"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"><path fill="#f2e8ff" d="M512 512m-480 0a480 480 0 1 0 960 0 480 480 0 1 0-960 0Z"></path><path fill="#a259ff" d="M723.2 704c-25.6 0-51.2-12.8-70.4-32L582.4 582.4H435.2l-38.4 64c-19.2 32-51.2 57.6-89.6 57.6-57.6 0-102.4-44.8-102.4-102.4v-12.8V576l25.6-166.4c6.4-70.4 57.6-121.6 128-121.6 32 0 70.4 12.8 89.6 38.4 25.6 0 89.6-6.4 128 0 25.6-25.6 57.6-32 89.6-32 51.2 0 96 32 115.2 83.2v12.8l38.4 179.2c0 6.4 6.4 19.2 6.4 32 0 51.2-44.8 102.4-102.4 102.4z"></path><path fill="#FFFFFF" d="M716.8 460.8c-12.8 0-19.2-12.8-19.2-19.2s6.4-19.2 19.2-19.2c12.8 0 19.2 12.8 19.2 19.2s-6.4 19.2-19.2 19.2z m-108.8 0c-12.8 0-19.2-12.8-19.2-19.2s6.4-19.2 19.2-19.2c12.8 0 19.2 12.8 19.2 19.2s-6.4 19.2-19.2 19.2z m51.2 57.6c-6.4 0-19.2-6.4-19.2-19.2s6.4-19.2 19.2-19.2 19.2 12.8 19.2 19.2-6.4 19.2-19.2 19.2z m0-115.2c-6.4 0-19.2-6.4-19.2-19.2s6.4-19.2 19.2-19.2 19.2 12.8 19.2 19.2-6.4 19.2-19.2 19.2zM345.6 416h-51.2V448h51.2v51.2h32V448h51.2v-32h-51.2v-51.2h-32z"></path></g></svg>
</div>
<div class="messages">
<span class="title">Well done!</span>
<span class="description">New level reached.</span>
<span class="level">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><g stroke-width="0" id="SVGRepo_bgCarrier"></g><g stroke-linejoin="round" stroke-linecap="round" id="SVGRepo_tracerCarrier"></g><g id="SVGRepo_iconCarrier"> <path stroke-linejoin="round" stroke-linecap="round" stroke-width="2" stroke="#fff" d="M15 16L12.1937 13.1937V13.1937C12.0867 13.0867 11.9133 13.0867 11.8063 13.1937V13.1937L9 16"></path> <path stroke-linejoin="round" stroke-linecap="round" stroke-width="2" stroke="#fff" d="M15 11L12.1505 8.15049V8.15049C12.0674 8.06738 11.9326 8.06738 11.8495 8.15049V8.15049L9 11"></path> </g></svg>
lvl. 8
</span>
</div>
<div class="action">
<button>Next</button>
</div>
</div>
<style>
.notification {
width: 300px;
height: 70px;
background: #fff;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: space-between;
color: #212121;
box-shadow: 0px 42px 53px 13px rgba(0,0,0,0.1);
padding: 2px;
position: relative;
animation: appear .6s linear alternate-reverse infinite;
transition: all .6s ease;
}
.icon {
height: 100%;
transition: transform .6s ease;
}
.messages {
height: 100%;
flex: 1;
display: flex;
flex-direction: column;
justify-content: flex-start;
padding: 4px;
}
.title {
font-size: 0.95rem;
line-height: 1rem;
font-weight: 700;
margin-bottom: 4px;
color: #494949;
}
.description {
font-size: 13px;
margin-bottom: 4px;
}
.level {
color: #a259ff;
font-weight: 600;
background-color: rgba(162, 89, 255, 0.247);
display: flex;
align-items: center;
flex: 1;
height: 0;
width: max-content;
padding: 4px;
border-radius: 10px;
}
.level svg {
height: 140%;
background-color: #a259ff;
border-radius: 6px;
margin-right: 4px;
}
.action {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.action button {
padding: 0.5rem 1rem;
background-color: #a259ff;
color: #ffffff;
font-size: 0.75rem;
line-height: 1rem;
font-weight: 700;
text-transform: uppercase;
border-radius: 10px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
border: none;
height: 40px;
transition: all .6s ease;
margin-right: 6px;
}
.notification:hover .icon {
transform: rotate(45deg);
}
.action button:hover {
height: 100%;
margin-right: 0;
}
.action button:active {
background-color: #56deaa;
}
@keyframes appear {
from {
transform: scale(0.98);
}
to {
transform: scale(1);
}
}
</style>
<!--
MIT License
Copyright (c) 2023 Uiverse.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->