"tooltip"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/yoannhel/pen/pntHc?depth=everything&order=popularity&page=68&q=list&show_forks=false" /> <script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script> <style class="cp-pen-styles">@import url(https://fonts.googleapis.com/css?family=Muli); body { width: 100%; height: 100%; margin: 0; padding: 0; background-color: #B6BCC9; font-family: 'Muli'; } * { outline: none; } h1 { font-size: 25px; font-weight: 100; color: #2C2C2C; margin: 20px 25px; } a { text-decoration: none; color: #3476CA; } a:hover { color: #6CB5F3; } .open { position: fixed; width: 100px; height: 40px; left: 50%; top: -1000px; margin-left: -80px; margin-top: -30px; border: 1px solid #ccc; background-color: #fff; border-radius: 6px; padding: 10px 30px; color: #444; transition: all ease-out 0.6s; } .open:hover { border: 1px solid #aaa; box-shadow: 0 0 8px #ccc inset; transition: all ease-out 0.6s; } .container { position: fixed; width: 400px; height: 238px; left: 50%; top: 50%; margin-top: -119px; margin-left: -200px; background-color: #F3F3F3; border-radius: 6px; box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.4); } .container:before { content: ''; position: absolute; left: -14px; top: 28px; border-style: solid; border-width: 10px 14px 10px 0; border-color: rgba(0, 0, 0, 0) #F3F3F3 rgba(0, 0, 0, 0) rgba(0, 0, 0, 0); } .container p { width: 350px; font-size: 16px; color: #a8aab2; font-weight: 400; line-height: 28px; float: left; margin: 0; } .container .bottom { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; width: 100%; bottom: 0; position: absolute; } .container .bottom .step { flex: 3; -webkit-flex: 3; -ms-flex: 3; width: 100%; height: 54px; background-color: #373942; border-bottom-left-radius: 6px; display: flex; } .container .bottom .step span { flex: 1; -webkit-flex: 1; -ms-flex: 1; line-height: 54px; color: #fff; margin-left: 25px; font-size: 18px; } .container .bottom .step ul { flex: 2; -webkit-flex: 2; -ms-flex: 2; list-style: none; height: 10px; margin: 23px 0; padding-left: 15px; } .container .bottom .step ul li { position: relative; height: 7px; width: 7px; margin: 0 10px; float: left; border-radius: 50%; background-color: none; border: 1px solid #535560; } .container .bottom .step ul li:first-child:before { width: 0; } .container .bottom .step ul li:before { content: ''; position: absolute; width: 20px; border-top: 1px solid #535560; left: -21px; top: 3px; } .container .bottom .step ul li.true { background-color: #7a7d86; } .container .bottom .step ul li.active { background-color: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, 0.78); } .close { cursor: pointer; } .close:before, .close:after { content: ""; position: absolute; height: 13px; width: 13px; top: 26px; right: 31px; border-top: 2px solid #7c7c7c; -webkit-transform: rotate(-45deg); -moz-transform: rotate(-45deg); -ms-transform: rotate(-45deg); -o-transform: rotate(-45deg); transform: rotate(-45deg); } .close:before { right: 40px; -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); -ms-transform: rotate(45deg); -o-transform: rotate(45deg); transform: rotate(45deg); } .btn { flex: 1; background-color: #6cb5f3; border: 0; margin: 0; padding: 0; text-transform: uppercase; color: #fff; font-weight: bold; border-bottom-right-radius: 6px; cursor: pointer; transition: all .3s; } .btn:hover { background-color: #6BA5D6; transition: all .3s; } .btn:active { background-color: #5F8AAF; } .slider-container { width: 350px; margin: 0 25px; overflow: hidden; } .slider-turn { width: 10000px; } </style></head><body> <div class="container"> <h1>Guided tour tooltip</h1> <span class="close"></span> <div class="slider-container"> <div class="slider-turn"> <p> Guided tour tooltip inspired by Jonathan Moreira </p> <p> Dribbble shot visible at <a href="https://dribbble.com/shots/1216346-Guided-tour-tooltip" title="Dribbble shot" target="_blank">this link</a> </p> <p> Codepen by Yoann Helin </p> <p> <a href="https://twitter.com/YoannHELIN" title="Twitter" target="_blank">Twitter : @YoannHELIN</a> </p> <p>Thank you !</p> </div> </div> <div class="bottom"> <div class="step"> <span></span> <ul> <li data-num="1"></li> <li data-num="2"></li> <li data-num="3"></li> <li data-num="4"></li> <li data-num="5"></li> </div> </ul> <button class="btn">Next</button> </div> </div> <button class="open">Open</button> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script><script src='//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script >// Inspired by Jonathan Moreira // http://dribbble.com/shots/1216346-Guided-tour-tooltip // Twitter @YoannHELIN $(document).ready(function () { var nbP = $('.container p').length; var w = parseInt($('.container p').css("width")); var max = (nbP - 1) * w; $("ul li[data-num='1']").addClass('active'); $('.step span').html('Step 1'); $('body').on('click','.btn', function(){ var margL = parseInt($('.slider-turn').css('margin-left')); var modulo = margL%w; if (-margL < max && modulo == 0) { margL -= w; $('.slider-turn').animate({ 'margin-left':margL },300); $('ul li.active').addClass('true').removeClass('active'); var x = -margL/w +1; $('ul li[data-num="'+x+'"]').addClass('active'); $('.step span').html("Step "+x); } else {} }); $('body').on('click','.close',function(){ $('.container').animate({ 'opacity':0 },600); $('.container').animate({ 'top':-1200 }, { duration: 2300, queue: false }); $('.open').animate({ 'top':'50%' }); }); $('body').on('click','.open',function() { $('.open').animate({ 'top':-1000 }); $('.container').animate({ 'opacity':1 },400); $('.container').animate({ 'top':'50%' }, { duration: 800, queue: false }); }); }); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: