It's free and you have access to premium codes!
Welcome back! Please login to your account.
Don't worry, we'll send you a message to help you to recover your acount.
Written by 22 May 2020
Showing hints to the visitors needs creative design. Like the boats and ships in the sea which need lighthouse, put a twinkling point in the page. When the point is hovered, the hint will be shown!
<!-- this script is provided by www.htmlbestcodes.com coded by: Kerixa Inc. -->
<style>
html,body{
height: 100%;
background: #212121;
font-family: 'Ubuntu', sans-serif;
line-height: 24px;
letter-spacing: 1px;
}
.item-hints{
height: 100px;
width: 100px;
margin: 50px auto;
}
.item-hints .hint {
width: 60px;
height: 60px;
margin: 150px auto;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.item-hints .hint::before{ /* //rotated squre */
background-color: #fff;
width: 8px;
height: 8px;
z-index: 2;
-webkit-clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%);
content: '';
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.item-hints .hint::after{ /* //green glow */
content: '';
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
border-radius: 50%;
width: 2px;
height: 2px;
z-index: 1;
-webkit-box-shadow: 0 0 50px 30px rgba(72,170,72,.3);
box-shadow: 0 0 50px 30px rgba(72,170,72,.3);
-webkit-animation: home_hero_item_hints_glow 2s cubic-bezier(.25,.1,.2,1) infinite;
animation: home_hero_item_hints_glow 2s cubic-bezier(.25,.1,.2,1) infinite;
-webkit-transition: opacity .5s ease;
transition: opacity .5s ease;
}
@-webkit-keyframes home_hero_item_hints_glow {
0% {
-webkit-box-shadow: 0 0 30px 5px #48aa48;
box-shadow: 0 0 30px 5px #48aa48
}
70% {
-webkit-box-shadow: 0 0 70px 50px rgba(72, 170, 72, 0);
box-shadow: 0 0 70px 50px rgba(72, 170, 72, 0)
}
100% {
-webkit-box-shadow: 0 0 0 50px rgba(72, 170, 72, 0);
box-shadow: 0 0 0 50px rgba(72, 170, 72, 0)
}
}
@keyframes home_hero_item_hints_glow {
0% {
-webkit-box-shadow: 0 0 30px 5px #48aa48;
box-shadow: 0 0 30px 5px #48aa48
}
70% {
-webkit-box-shadow: 0 0 70px 50px rgba(72, 170, 72, 0);
box-shadow: 0 0 70px 50px rgba(72, 170, 72, 0)
}
100% {
-webkit-box-shadow: 0 0 0 50px rgba(72, 170, 72, 0);
box-shadow: 0 0 0 50px rgba(72, 170, 72, 0)
}
}
.item-hints .hint-dot {
z-index: 3;
border: 1px solid #fff;
border-radius: 50%;
width: 60px;
height: 60px;
display: block;
-webkit-transform: translate(-0%,-0%) scale(.95);
transform: translate(-0%,-0%) scale(.95);
-webkit-animation: home_hero_item_hints_border 2s linear infinite;
animation: home_hero_item_hints_border 2s linear infinite;
margin: auto;
}
@-webkit-keyframes home_hero_item_hints_border {
0%,
100% {
border-color: rgba(255, 255, 255, .6);
-webkit-transform: translate(-50%, -50%) scale(.95);
transform: translate(-0%, -0%) scale(.95)
}
50% {
border-color: rgba(255, 255, 255, .3);
-webkit-transform: translate(-50%, -50%) scale(1);
transform: translate(-0%, -0%) scale(1)
}
}
@keyframes home_hero_item_hints_border {
0%,
100% {
border-color: rgba(255, 255, 255, .6);
-webkit-transform: translate(-50%, -50%) scale(.95);
transform: translate(-0%, -0%) scale(.95)
}
50% {
border-color: rgba(255, 255, 255, .3);
-webkit-transform: translate(-50%, -50%) scale(1);
transform: translate(-0%, -0%) scale(1)
}
}
.item-hints .hint-radius {
background-color: rgba(255,255,255,0.1);
border-radius: 50%;
width: 250px;
height: 250px;
position: absolute;
top: 50%;
left: 50%;
margin: -125px 0 0 -125px;
opacity: 0;
visibility: hidden;
-webkit-transform: scale(0);
transform: scale(0);
-webkit-transition-property: background-color,opacity,visibility,-webkit-transform;
transition-property: background-color,opacity,visibility,-webkit-transform;
transition-property: background-color,opacity,visibility,transform;
transition-property: background-color,opacity,visibility,transform,-webkit-transform;
-webkit-transition-duration: .5s;
transition-duration: .5s;
-webkit-transition-timing-function: ease,ease,ease,cubic-bezier(.5,0,0,1);
transition-timing-function: ease,ease,ease,cubic-bezier(.5,0,0,1);
}
.item-hints .hint:hover .hint-radius {
opacity: 1;
visibility: visible;
-webkit-transform: scale(1);
transform: scale(1);
}
.item-hints .hint[data-position="1"] .hint-content {
top: 85px;
left: 50%;
margin-left: 56px;
}
.item-hints .hint-content {
color: #fff;
width: 300px;
position: absolute;
z-index: 5;
padding: 12px 0;
opacity: 0;
visibility: hidden;
-webkit-transition: opacity .7s ease,visibility .7s ease;
transition: opacity .7s ease,visibility .7s ease;
pointer-events: none;
color: #fff;
visibility: hidden;
pointer-events: none
}
.item-hints .hint:hover .hint-content {
color: #fff;
width: 300px;
position: absolute;
z-index: 5;
padding: 12px 0;
opacity: 1;
visibility: visible !important;
-webkit-transition: opacity .7s ease,visibility .7s ease;
transition: opacity .7s ease,visibility .7s ease;
pointer-events: none;
color: #fff;
visibility: hidden;
pointer-events: none
}
.item-hints .hint-content::before {
width: 0px;
bottom: 0;
left: 0;
content: '';
background-color: #fff;
height: 1px;
position: absolute;
transition: width 0.4s;
}
.item-hints .hint:hover .hint-content::before {
width: 180px;
transition: width 0.4s;
}
.item-hints .hint-content::after {
-webkit-transform-origin: 0 50%;
transform-origin: 0 50%;
-webkit-transform: rotate(-225deg);
transform: rotate(-225deg);
bottom: 0;
left: 0;
width: 80px;
content: '';
background-color: #fff;
height: 1px;
position: absolute;
opacity: 1;
-webkit-transition: opacity .5s ease;
transition: opacity .5s ease;
transition-delay: 0s;
-webkit-transition-delay: 0s;
transition-delay: 0s;
}
.item-hints .hint:hover .hint-content::after {
opacity: 1;
visibility: visible;
}
.item-hints .hint[data-position="4"] .hint-content {
bottom: 85px;
left: 50%;
margin-left: 56px;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Ubuntu:300,300i,400,400i,500,500i,700,700i&display=swap" rel="stylesheet">
<div class="item-hints">
<div class="hint" data-position="4">
<span class="hint-radius"></span>
<span class="hint-dot"></span>
<div class="hint-content do--split-children">
<p>Continue until reaching sky! Don't get tired. Your goal is important!</p>
</div>
</div>
</div><a target='_blank' href='www.htmlbestcodes.com' style='font-size: 8pt; text-decoration: none'>Html Best Codes</a>
Comments
Here you can leave us commments. Let us know what you think about this code tutorial!