Cool Timeline
How do I make an cool timeline?
What is a cool timeline? How do you make a cool timeline? This script and codes were developed by Raj K Singh on 28 September 2022, Wednesday.
Cool Timeline - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cool Timeline</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrapper">
<section class="block"> <div class="each-year"> <div class="title">2016</div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam molestiae sint ut sit sed impedit, minus, eligendi modi. </div> </div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, vitae, ex voluptates repudiandae molestias modi veniam cumque, iusto qui quia illum ipsa laborum adipisci porro nulla magnam error eligendi? Quos! </div> </div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, vitae, ex voluptates repudiandae molestias modi veniam cumque, iusto qui quia illum ipsa laborum adipisci porro nulla magnam error eligendi? Quos! </div> </div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, vitae, ex voluptates repudiandae molestias modi veniam cumque, iusto qui quia illum ipsa laborum adipisci porro nulla magnam error eligendi? Quos! </div> </div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, vitae, ex voluptates repudiandae molestias modi veniam cumque, iusto qui quia illum ipsa laborum adipisci porro nulla magnam error eligendi? Quos! </div> </div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio, vitae, ex voluptates repudiandae molestias modi veniam cumque, iusto qui quia illum ipsa laborum adipisci porro nulla magnam error eligendi? Quos! </div> </div> </div>
</section>
<section class="block"> <div class="each-year"> <div class="title">2015</div> <div class="each-event"> <div class="event-description"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. </div> </div> </div>
</section>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Cool Timeline - Script Codes CSS Codes
@import url("https://www.google.com/fonts#UsePlace:use/Collection:Open+Sans+Condensed:300");
.wrapper { background-color: #42A5F5; width: 100%; min-height: 100vh; height: 100%; font: normal 16px/26px Open Sans Condensed, sans-serif; color: #fff; padding: 100px 20px 200px; box-sizing: border-box;
}
.block { z-index: 1; position: relative;
}
.block:before { content: ""; position: absolute; height: calc(100% - 40px); width: 1px; background-color: #f2f2f2; left: 50%; margin-top: 90px;
}
.title { font: bold 42px/52px Open Sans Condensed, sans-serif; text-align: center; padding: 20px; transition: all 0.8s ease-in-out;
}
.each-event { background-color: #f4f4f4; color: #777; padding: 15px; margin: 60px 20px; width: 300px; position: relative; border-radius: 4px; box-sizing: border-box; transition: all 0.3s ease-in-out;
}
.each-event:before { content: ""; position: absolute; top: calc(50% - 8px); left: -27px; width: 16px; height: 16px; border-radius: 50%; background-color: #fff; box-shadow: 0 4px 20px -4px rgba(64, 64, 64, 0.8);
}
.each-event:nth-child(odd) { margin-left: calc(50% + 20px);
}
.each-event:nth-child(even) { margin-left: calc(50% - 321px);
}
.each-event:nth-child(even):before { left: calc(100% + 14px);
}
.title.non-focus { font-size: 24px; line-height: 34px; transition: all 0.8s ease-in-out;
}
.each-event.non-focus { color: #d2d2d2; background: #e6e6e6; margin-top: 90px; transform: rotateZ(45deg); transition: all 0.8s ease-in-out;
}
.each-event.non-focus:before { opacity: 0; background-color: #aaa;
}
Cool Timeline - Script Codes JS Codes
var $element=$('.each-event, .title');
var $window = $(window);
$window.on('scroll resize', check_for_fade);
$window.trigger('scroll');
function check_for_fade() { var window_height = $window.height(); $.each($element, function (event) { var $element = $(this); var element_height = $element.outerHeight(); var element_offset = $element.offset().top; space = window_height - (element_height + element_offset -$(window).scrollTop()); if (space < 60) { $element.addClass("non-focus"); } else { $element.removeClass("non-focus"); } });
};
Developer | Raj K Singh |
Username | rajinwonderland |
Uploaded | September 28, 2022 |
Rating | 3 |
Size | 3,428 Kb |
Views | 42,504 |
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!
Name | Size |
React-MDL example | 2,772 Kb |
MarvelAnimated | 4,821 Kb |
Card Unstack | 3,907 Kb |
Upcoming Dates | 2,460 Kb |
A Pen by Raj K Singh | 1,596 Kb |
React CardStack | 4,514 Kb |
Novvum animated | 4,841 Kb |
React Product Cards | 5,225 Kb |
Project Timeline | 1,942 Kb |
NerdyVerse Featured Product Card | 5,183 Kb |
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!
Name | Username | Size |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 Kb |
SlideDown FixedMenu | Mp_graphic | 5,602 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
JQuery FullScreen Overlay | _codemics | 2,252 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
SCSS Social Icons Flat | Mattsince87 | 3,482 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
We Simplify animation | Meodai | 48,169 Kb |
Experiment - SCSS SVG Background Image with Variables | See8ch | 3,270 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!