This code creates an interactive onboarding screen with HTML, CSS, and JavaScript. The screen guides users through steps, offering a visually appealing and informative experience. The JavaScript functionality enables smooth navigation, allowing users to advance, go back, and finish the onboarding process effortlessly. The purpose of this code is to enhance user engagement and provide a seamless introduction to a platform or application.
How to Create an Onboarding Screen Using HTML CSS and JavaScript
1. First of all, load the Normalize CSS, and Font Awesome CSS by adding the following assets CDN links into the head tag of your HTML document.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Lato:700,300'> <link rel='stylesheet' href='https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css'> <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css'>
2. After that, create the HTML structure. Replace the placeholder content in the HTML code with your images, text, and other media assets. Customize the onboarding screens to showcase your product’s features or key information.
<!-- / A set of walkthrough screens in HTML/CSS/JS. A personal experiment with layering images, CSS3 transitions, & flexbox. --> <button class='open-walkthrough'>Start</button> <div class='walkthrough show reveal'> <div class='walkthrough-pagination'> <a class='dot active'></a> <a class='dot'></a> <a class='dot'></a> <a class='dot'></a> <a class='dot'></a> </div> <div class='walkthrough-body'> <ul class='screens animate'> <li class='screen active'> <div class='media logo'> <img class='logo' src='https://s3.amazonaws.com/jebbles-codepen/icon.png'> </div> <h3> Product Intro <br>Walkthrough</br> </h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </li> <li class='screen'> <div class='media books'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/book_icon_1.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/book_icon_2.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/book_icon_3.png'> </div> <h3> Data and File <br>Management</br> </h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </li> <li class='screen'> <div class='media bars'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/bar_icon_axis.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/bar_icon_3.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/bar_icon_2.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/bar_icon_1.png'> </div> <h3> Analytics <br>and Metrics</br> </h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </li> <li class='screen'> <div class='media files'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/file_icon_1.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/file_icon_2.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/file_icon_3.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/file_icon_4.png'> </div> <h3> Reporting <br>and Insights</br> </h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </li> <li class='screen'> <div class='media comm'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/comm_icon_1.png'> <img class='icon' src='https://s3.amazonaws.com/jebbles-codepen/comm_icon_2.png'> </div> <h3> Communications <br>Tools</br> </h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p> </li> </ul> <button class='prev-screen'> <i class='icon-angle-left'></i> </button> <button class='next-screen'> <i class='icon-angle-right'></i> </button> </div> <div class='walkthrough-footer'> <button class='button next-screen'>Next</button> <button class='button finish close' disabled='true'>Finish</button> </div> </div>
3. Style the onboarding screen using the following CSS styles. Modify the CSS code to match the styling of your web application. Customize colors, fonts, and other visual elements to align with your brand or design preferences.
body{ color: white; font-family: "Lato"; font-weight: light; display: flex; justify-content: center; align-items: center; width: 100vw; height: 100vh; overflow: hidden; background: linear-gradient(150deg, #e6d3f9 0%, #e6d3f9 50%, #cea0f1 50%, #cea0f1 100%) !important; } .open-walkthrough { border: 0; background: #5da3f2; font-weight: bold; text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; height: 40px; width: 120px; position: absolute; top: 50%; left: 50%; margin-top: -20px; margin-left: -60px; } .walkthrough { box-shadow: 0 6px 12px rgba(0, 0, 0, 0.23), 0 10px 40px rgba(0, 0, 0, 0.19); background: linear-gradient(to right bottom, #9e66c6, #6027e1); border-radius: 0; display: none; flex-direction: column; flex: 0 0 auto; font-size: 14px; height: 464px; overflow: hidden; transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); width: 280px; z-index: 1000; } .walkthrough.show { display: flex; opacity: 0; transform: translateY(72px); } .walkthrough.reveal { opacity: 1; transform: translateY(0); } .walkthrough .walkthrough-body { align-items: center; display: flex; flex: 1; text-align: center; } .walkthrough .walkthrough-body .prev-screen, .walkthrough .walkthrough-body .next-screen { align-self: stretch; background: none; border: 0; margin-top: 40px; color: rgba(255, 255, 255, 0.25); cursor: pointer; flex: 0 0 auto; font-size: 24px; opacity: 1; outline: none; padding: 16px; transform: scale(1); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1000; } .walkthrough .walkthrough-body .prev-screen:hover, .walkthrough .walkthrough-body .prev-screen:active, .walkthrough .walkthrough-body .next-screen:hover, .walkthrough .walkthrough-body .next-screen:active { color: white; transform-origin: center; transform: scale(1.25); } .walkthrough .walkthrough-body .prev-screen:disabled, .walkthrough .walkthrough-body .next-screen:disabled { opacity: 0; } .walkthrough .walkthrough-body .prev-screen { order: 1; } .walkthrough .walkthrough-body .next-screen { order: 3; } .walkthrough .walkthrough-body .screens { flex: 1; align-self: stretch; position: relative; margin: 0 -16px; padding: 0; order: 2; } .walkthrough .walkthrough-body .screens .screen { position: absolute; list-style-type: none; } .walkthrough .walkthrough-body .media { background: rgba(255, 255, 255, 0.25); border-radius: 132px; height: 132px; margin: 32px auto; width: 132px; } .walkthrough .walkthrough-body h3 { font-size: 15px; line-height: 1.4em; text-transform: uppercase; letter-spacing: 0.15em; } .walkthrough .walkthrough-body p { line-height: 1.6em; font-size: 13px; margin-top: 16px; padding-top: 0; color: rgba(255, 255, 255, 0.8); } .walkthrough .walkthrough-pagination { align-items: center; display: flex; justify-content: center; margin-top: 24px; } .walkthrough .walkthrough-pagination .dot { background: rgba(0, 0, 0, 0.25); border-radius: 8px; height: 8px; margin: 0 4px; transform: scale(0.75); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); width: 8px; } .walkthrough .walkthrough-pagination .dot.active { background: white; transform: scale(1); transition-delay: 0.4s; } .walkthrough .walkthrough-footer { display: flex; flex: 0 0 auto; justify-content: space-around; padding: 0; } .walkthrough .walkthrough-footer button { height: 40px; border: 0; background: #5da3f2; font-weight: bold; text-transform: uppercase; letter-spacing: 0.15em; border-radius: 0; color: white; flex: 1; font-size: 12px; margin: 0; outline: 0; padding: 12px; transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer; } .walkthrough .walkthrough-footer button:hover { background: #6babf3; } .walkthrough .walkthrough-footer button:active { background: #5da3f2; } .walkthrough .walkthrough-footer button:disabled { cursor: pointer; } .walkthrough .walkthrough-footer button.finish { background: #3e94f5; position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: scale(0, 1); transform-origin: center; transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); } .walkthrough .walkthrough-footer button.finish:hover { background: #4d9cf6; } .walkthrough .walkthrough-footer button.finish:active { background: #3e94f5; } .walkthrough .walkthrough-footer button.finish.active { transform: scale(1, 1); opacity: 1; } .walkthrough .screens { margin: 0; } .walkthrough .screens .media .status-badge { left: 136px; opacity: 0; position: absolute; top: 104px; transform: scale(0); transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); transition-delay: 0.6s; } .walkthrough .screens .media .status-badge i { display: inline; } .walkthrough .screens .media.logo .logo { margin-top: 20px; opacity: 0; transform: translateY(-60px); transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); width: 80px; } .walkthrough .screens .media .icon { position: absolute; opacity: 0; transform: translateY(-30px); transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); width: 132px; left: 48px; top: 32px; } .walkthrough .screens .media.bars .icon { transform: translate(40px, 20px); } .walkthrough .screens .media.bars .icon:nth-of-type(2) { transform: scale(0.25); transform-origin: 30% 54%; } .walkthrough .screens .media.bars .icon:nth-of-type(3) { transform: scale(0.25); transform-origin: 30% 40%; } .walkthrough .screens .media.bars .icon:nth-of-type(4) { transform: scale(0.25); transform-origin: 30% 26%; } .walkthrough .screens .media.files .icon { transform: translate(40px, 20px); } .walkthrough .screens .media.comm .icon { transform: scale(0.25); transform-origin: 29% 73%; } .walkthrough .screens .media.comm .icon:nth-child(2) { transform-origin: 66% 85%; } .walkthrough .screens .screen { opacity: 0; position: absolute; transform: translateX(-72px); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); } .walkthrough .screens .screen.active { opacity: 1; transform: translateX(0) scale(1); transition-delay: 0.4s; } .walkthrough .screens .screen.active ~ .screen { opacity: 0; transform: translateX(72px); } .walkthrough .screens .screen.active .media .status-badge { opacity: 1; transform: scale(1.75); } .walkthrough .screens .screen.active .media.logo .logo { opacity: 0.8; transform: translateY(0); transition-delay: 0.6s; } .walkthrough .screens .screen.active .media.logo .status-badge { transition-delay: 1s; } .walkthrough .screens .screen.active .media.books .icon { opacity: 1; transform: translateY(0); transition-delay: 0.6s; } .walkthrough .screens .screen.active .media.books .icon:nth-child(2) { transition-delay: 0.725s; } .walkthrough .screens .screen.active .media.books .icon:nth-child(3) { transition-delay: 0.85s; } .walkthrough .screens .screen.active .media.books .status-badge { transition-delay: 1.4s; } .walkthrough .screens .screen.active .media.bars .icon { opacity: 1; transform: translate(0) scale(1); transition-delay: 0.6s; } .walkthrough .screens .screen.active .media.bars .icon:nth-child(2) { transition-delay: 1.05s; } .walkthrough .screens .screen.active .media.bars .icon:nth-child(3) { transition-delay: 0.925s; } .walkthrough .screens .screen.active .media.bars .icon:nth-child(4) { transition-delay: 0.8s; } .walkthrough .screens .screen.active .media.files .icon { opacity: 1; transform: translateY(0); transition-delay: 0.9s; } .walkthrough .screens .screen.active .media.files .icon:nth-child(3) { transition-delay: 0.8s; } .walkthrough .screens .screen.active .media.files .icon:nth-child(2) { transition-delay: 0.7s; } .walkthrough .screens .screen.active .media.files .icon:nth-child(1) { transition-delay: 0.6s; } .walkthrough .screens .screen.active .media.files .status-badge { transition-delay: 1.6s; } .walkthrough .screens .screen.active .media.comm .icon { opacity: 1; transform: scale(1); transition-delay: 0.6s; } .walkthrough .screens .screen.active .media.comm .icon:nth-child(2) { transition-delay: 0.8s; } .walkthrough .screens .screen.active .media.comm .status-badge { transition-delay: 1.6s; }
4. Load the jQuery JavaScript library by adding the following CDN link just before closing the body tag:
<script src='https://code.jquery.com/jquery-1.12.0.min.js'></script>
5. Finally, add the following JavaScript function to activate the onboarding screen.
(function() { $(document).ready(function() { var walkthrough; walkthrough = { index: 0, nextScreen: function() { if (this.index < this.indexMax()) { this.index++; return this.updateScreen(); } }, prevScreen: function() { if (this.index > 0) { this.index--; return this.updateScreen(); } }, updateScreen: function() { this.reset(); this.goTo(this.index); return this.setBtns(); }, setBtns: function() { var $lastBtn, $nextBtn, $prevBtn; $nextBtn = $('.next-screen'); $prevBtn = $('.prev-screen'); $lastBtn = $('.finish'); if (walkthrough.index === walkthrough.indexMax()) { $nextBtn.prop('disabled', true); $prevBtn.prop('disabled', false); return $lastBtn.addClass('active').prop('disabled', false); } else if (walkthrough.index === 0) { $nextBtn.prop('disabled', false); $prevBtn.prop('disabled', true); return $lastBtn.removeClass('active').prop('disabled', true); } else { $nextBtn.prop('disabled', false); $prevBtn.prop('disabled', false); return $lastBtn.removeClass('active').prop('disabled', true); } }, goTo: function(index) { $('.screen').eq(index).addClass('active'); return $('.dot').eq(index).addClass('active'); }, reset: function() { return $('.screen, .dot').removeClass('active'); }, indexMax: function() { return $('.screen').length - 1; }, closeModal: function() { $('.walkthrough, .shade').removeClass('reveal'); return setTimeout((() => { $('.walkthrough, .shade').removeClass('show'); this.index = 0; return this.updateScreen(); }), 200); }, openModal: function() { $('.walkthrough, .shade').addClass('show'); setTimeout((() => { return $('.walkthrough, .shade').addClass('reveal'); }), 200); return this.updateScreen(); } }; $('.next-screen').click(function() { return walkthrough.nextScreen(); }); $('.prev-screen').click(function() { return walkthrough.prevScreen(); }); $('.close').click(function() { return walkthrough.closeModal(); }); $('.open-walkthrough').click(function() { return walkthrough.openModal(); }); walkthrough.openModal(); // Optionally use arrow keys to navigate walkthrough return $(document).keydown(function(e) { switch (e.which) { case 37: // left walkthrough.prevScreen(); break; case 38: // up walkthrough.openModal(); break; case 39: // right walkthrough.nextScreen(); break; case 40: // down walkthrough.closeModal(); break; default: return; } e.preventDefault(); }); }); }).call(this); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiI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3VnaC5jbG9zZU1vZGFsKClcbiAgICBcbiAgJCgnLm9wZW4td2Fsa3Rocm91Z2gnKS5jbGljayAtPlxuICAgIHdhbGt0aHJvdWdoLm9wZW5Nb2RhbCgpXG4gICAgXG4gIHdhbGt0aHJvdWdoLm9wZW5Nb2RhbCgpXG4gXG4gICMgT3B0aW9uYWxseSB1c2UgYXJyb3cga2V5cyB0byBuYXZpZ2F0ZSB3YWxrdGhyb3VnaFxuICAkKGRvY3VtZW50KS5rZXlkb3duIChlKSAtPlxuICAgIHN3aXRjaCBlLndoaWNoXG4gICAgICB3aGVuIDM3XG4gICAgICAgICMgbGVmdFxuICAgICAgICB3YWxrdGhyb3VnaC5wcmV2U2NyZWVuKClcbiAgICAgIHdoZW4gMzhcbiAgICAgICAgIyB1cFxuICAgICAgICB3YWxrdGhyb3VnaC5vcGVuTW9kYWwoKVxuICAgICAgd2hlbiAzOVxuICAgICAgICAjIHJpZ2h0XG4gICAgICAgIHdhbGt0aHJvdWdoLm5leHRTY3JlZW4oKVxuICAgICAgd2hlbiA0MFxuICAgICAgICAjIGRvd25cbiAgICAgICAgd2Fsa3Rocm91Z2guY2xvc2VNb2RhbCgpXG4gICAgICBlbHNlXG4gICAgICAgIHJldHVyblxuICAgIGUucHJldmVudERlZmF1bHQoKVxuICAgIHJldHVybiJdfQ== //# sourceURL=coffeescript
That’s all! hopefully, you have successfully created an Onboarding Screen on your website/app. If you have any questions or suggestions, feel free to comment below.
Similar Code Snippets:
I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences.
I truly enjoy what I’m doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.