CSS3 Station Message

Size
5,911 Kb
Views
24,288

How do I make an css3 station message?

What is a css3 station message? How do you make a css3 station message? This script and codes were developed by Özgür Sağıroğlu on 13 August 2022, Saturday.

CSS3 Station Message Previews

CSS3 Station Message - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Station Message</title> <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! */ html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
html { line-height: 1;
}
ol, ul { list-style: none;
}
table { border-collapse: collapse; border-spacing: 0;
}
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle;
}
q, blockquote { quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none;
}
a img { border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block;
}
html, body { color: #681; background: #eee; font: normal 12px Helvetica; zoom: 0 !important;
}
.dc { -moz-transition: opacity 2s; -o-transition: opacity 2s; -webkit-transition: opacity 2s; transition: opacity 2s; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0;
}
.bc { cursor: pointer; color: #28e;
}
.bc:before { top: 1px; left: -31px; width: 8px; height: 8px; border-width: 5px; border-color: #28e;
}
.bc .details { display: block; color: #444;
}
/* ---- Timeline ---- */
.bus { -moz-transform-origin: 25% 25%; -ms-transform-origin: 25% 25%; -webkit-transform-origin: 25% 25%; transform-origin: 25% 25%; position: absolute; z-index: 1; display: block; margin: 100px; height: 4px; background: #9b2; width: 25px; animation: a 10s 1s both ease-in-out;
}
.bus::before,
.bus::after { content: ""; position: absolute; top: -8px; display: block; width: 0; height: 0; border-radius: 10px; border: 10px solid #9b2;
}
.bus::before { left: -5px;
}
.bus::after { right: -10px; border: 10px solid transparent; border-right: 0; border-left: 20px solid #9b2; border-radius: 3px;
}
li:nth-child(1) { left: 150px; top: 25px;
}
li:nth-child(2) { left: 300px; top: 55px;
}
li:nth-child(3) { left: 450px; top: 75px;
}
li:nth-child(4) { left: 600px; top: 32px;
}
li:nth-child(5) { left: 750px; top: 100px;
}
@keyframes a { 0% { top: -55px; left: -55px; -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -webkit-transform: rotate(30deg); transform: rotate(30deg); } 10% { top: 1px; left: 53px; } 20% { -moz-transform: rotate(13deg); -ms-transform: rotate(13deg); -webkit-transform: rotate(13deg); transform: rotate(13deg); } 30% { top: 31px; left: 203px; } 40% { -moz-transform: rotate(9deg); -ms-transform: rotate(9deg); -webkit-transform: rotate(9deg); transform: rotate(9deg); } 50% { top: 51px; left: 353px; } 60% { -moz-transform: rotate(-19deg); -ms-transform: rotate(-19deg); -webkit-transform: rotate(-19deg); transform: rotate(-19deg); } 70% { top: 8px; left: 503px; } 80% { -moz-transform: rotate(25deg); -ms-transform: rotate(25deg); -webkit-transform: rotate(25deg); transform: rotate(25deg); } 90% { top: 76px; left: 653px; filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false); opacity: 1; } 100% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); left: 700px; top: 76px; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; }
}
li { position: absolute; top: -77px; display: inline-block; float: left; width: 150px; transform: rotate(-45deg); font: bold 14px arial;
}
li::before { animation: li 100ms both; content: ""; position: absolute; top: 3px; left: -29px; display: block; width: 6px; height: 6px; border: 4px solid #9b2; border-radius: 10px; background: #eee; -moz-transition: all 1s; -o-transition: all 1s; -webkit-transition: all 1s; transition: all 1s;
}
/* ---- Details ---- */
.details { display: none; z-index: 3; position: absolute; left: -85px; bottom: -65px; padding: 15px; border-radius: 3px; border-right: 2px solid rgba(0, 0, 0, 0.1); border-bottom: 2px solid rgba(0, 0, 0, 0.1); transform: rotate(45deg); font: 12px arial; background: #fff;
}
.details::before { content: ""; position: absolute; left: 10px; top: -9px; display: block; width: 0; height: 0; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0;
}
/* ---- Hover effects ---- */
li:hover { cursor: pointer; color: #28e;
}
li:hover::before { top: 1px; left: -31px; width: 8px; height: 8px; border-width: 5px; border-color: #28e;
}
li:hover .details { display: block; color: #444;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="bus"></div>
<ol>
<li> Station 1 <span class="details"> Hello </span> </li> <li> Station 2 <span class="details"> I'm Özgür </span> </li> <li> Station 3 <span class="details" style="left:-115px; bottom:-125px;"> original pen:<br>codepen.io/agrimsrud/pen/vtoqy </span> </li> <li> Station 4 <span class="details"> see you </span> </li> <li> Station 5 <span class="details">Byee </span> </li>
</ol> <script src="js/index.js"></script>
</body>
</html>

CSS3 Station Message - Script Codes CSS Codes

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%; vertical-align: baseline;
}
html { line-height: 1;
}
ol, ul { list-style: none;
}
table { border-collapse: collapse; border-spacing: 0;
}
caption, th, td { text-align: left; font-weight: normal; vertical-align: middle;
}
q, blockquote { quotes: none;
}
q:before, q:after, blockquote:before, blockquote:after { content: ""; content: none;
}
a img { border: none;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block;
}
html, body { color: #681; background: #eee; font: normal 12px Helvetica; zoom: 0 !important;
}
.dc { -moz-transition: opacity 2s; -o-transition: opacity 2s; -webkit-transition: opacity 2s; transition: opacity 2s; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0;
}
.bc { cursor: pointer; color: #28e;
}
.bc:before { top: 1px; left: -31px; width: 8px; height: 8px; border-width: 5px; border-color: #28e;
}
.bc .details { display: block; color: #444;
}
/* ---- Timeline ---- */
.bus { -moz-transform-origin: 25% 25%; -ms-transform-origin: 25% 25%; -webkit-transform-origin: 25% 25%; transform-origin: 25% 25%; position: absolute; z-index: 1; display: block; margin: 100px; height: 4px; background: #9b2; width: 25px; animation: a 10s 1s both ease-in-out;
}
.bus::before,
.bus::after { content: ""; position: absolute; top: -8px; display: block; width: 0; height: 0; border-radius: 10px; border: 10px solid #9b2;
}
.bus::before { left: -5px;
}
.bus::after { right: -10px; border: 10px solid transparent; border-right: 0; border-left: 20px solid #9b2; border-radius: 3px;
}
li:nth-child(1) { left: 150px; top: 25px;
}
li:nth-child(2) { left: 300px; top: 55px;
}
li:nth-child(3) { left: 450px; top: 75px;
}
li:nth-child(4) { left: 600px; top: 32px;
}
li:nth-child(5) { left: 750px; top: 100px;
}
@keyframes a { 0% { top: -55px; left: -55px; -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -webkit-transform: rotate(30deg); transform: rotate(30deg); } 10% { top: 1px; left: 53px; } 20% { -moz-transform: rotate(13deg); -ms-transform: rotate(13deg); -webkit-transform: rotate(13deg); transform: rotate(13deg); } 30% { top: 31px; left: 203px; } 40% { -moz-transform: rotate(9deg); -ms-transform: rotate(9deg); -webkit-transform: rotate(9deg); transform: rotate(9deg); } 50% { top: 51px; left: 353px; } 60% { -moz-transform: rotate(-19deg); -ms-transform: rotate(-19deg); -webkit-transform: rotate(-19deg); transform: rotate(-19deg); } 70% { top: 8px; left: 503px; } 80% { -moz-transform: rotate(25deg); -ms-transform: rotate(25deg); -webkit-transform: rotate(25deg); transform: rotate(25deg); } 90% { top: 76px; left: 653px; filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false); opacity: 1; } 100% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); left: 700px; top: 76px; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0); opacity: 0; }
}
li { position: absolute; top: -77px; display: inline-block; float: left; width: 150px; transform: rotate(-45deg); font: bold 14px arial;
}
li::before { animation: li 100ms both; content: ""; position: absolute; top: 3px; left: -29px; display: block; width: 6px; height: 6px; border: 4px solid #9b2; border-radius: 10px; background: #eee; -moz-transition: all 1s; -o-transition: all 1s; -webkit-transition: all 1s; transition: all 1s;
}
/* ---- Details ---- */
.details { display: none; z-index: 3; position: absolute; left: -85px; bottom: -65px; padding: 15px; border-radius: 3px; border-right: 2px solid rgba(0, 0, 0, 0.1); border-bottom: 2px solid rgba(0, 0, 0, 0.1); transform: rotate(45deg); font: 12px arial; background: #fff;
}
.details::before { content: ""; position: absolute; left: 10px; top: -9px; display: block; width: 0; height: 0; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0;
}
/* ---- Hover effects ---- */
li:hover { cursor: pointer; color: #28e;
}
li:hover::before { top: 1px; left: -31px; width: 8px; height: 8px; border-width: 5px; border-color: #28e;
}
li:hover .details { display: block; color: #444;
}

CSS3 Station Message - Script Codes JS Codes

var li = document.getElementsByTagName('li');
var x = 0;
t = setInterval(function(){ x != 0 ? li[x - 1].className = "dc":null; li[x].className = ('bc'); x++;
},2000);
CSS3 Station Message - Script Codes
CSS3 Station Message - Script Codes
Home Page Home
Developer Özgür Sağıroğlu
Username ozgursagiroglu
Uploaded August 13, 2022
Rating 3
Size 5,911 Kb
Views 24,288
Do you need developer help for CSS3 Station Message?

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!

Özgür Sağıroğlu (ozgursagiroglu) Script Codes
Create amazing blog posts 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!