"Simple Modular Responsive Header and footer"
Bootstrap 4.0.0 Snippet by imalitavakoli

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.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 ----------> <!-- CSS Utility classes (you may remove them from CSS as they don't harm the main functinality of the component): Center an element <div class="m-x-auto">...</div> Remove margins from an element .m-{a,t,r,b,l,x,y}-0 <div class="m-a-0">...</div> Add 12px margins to an element .m-{a,t,r,b,l,x,y} <div class="m-a">...</div> Remove paddings from an element .p-{a,t,r,b,l,x,y}-0 <div class="p-a-0">...</div> Add 12px paddings to an element .p-{a,t,r,b,l,x,y} <div class="p-a">...</div> Text alignment for 'extra small', 'small', 'medium', and 'large' screen sizes .text-{xs,sm,md,lg}-{left,right,center} <div class="text-xs-left">...</div> Make an element to have 100% width <div class="w-full" style="background-color: #eee;">...</div> Some very common text and background colors .bg-color-{white,black} .bg-color-{white,black}-secondary .text-color-{white,black} <div class="text-color-white bg-color-black">...</div> Make an element to have curved or rounded edges (border-radius) <div class="curved">...</div> <div class="rounded">...</div> --> <div class="text-xs-center" style="color: #fff; background-color: #f06292; min-height: 100px; padding: 65px;"> <h1 style="font-size: 3rem;">WOW</h1> <p class="lead" style="font-size: 1.8rem;"> <strong>Simple Modular Responsive Header and footer</strong> lets you build headers & footers in seconds! </p> </div> <div style="color: #1a1a1a; background-color: #eee; min-height: 300px; padding: 24px;"> <!-- Sample #1 ============================================= --> <header class="s24-bar text-color-white bg-color-black p-a"> <!-- Put your brand here --> <div class="s24-bar__brand"> <div style="max-width: 200px;"> <a href="#">Brand</a> </div> </div> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse" id="collapse-1"> <nav role="navigation"> <ul class="s24-list s24-list--visual-collapsible"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Home</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">About</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Portfolio</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Contact</a></li> </ul> </nav> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> <!-- Put your toggle button here, the button which toggles the `s24-bar__collapse` element --> <div class="s24-bar__toggle"> <a class="s24-js-toggle s24-link s24-link--effect-alpha" href="#" data-target="#collapse-1"><i class="fa fa-bars fa-fw"></i></a> </div> </header> <p class="lead text-xs-center"> Responsive header is <strong>a tiny framework in CSS, and JS</strong> which lets you build collapsible responsive headers in seconds. Just <strong>copy-past</strong> the codes here and replace your own content instead of our dummy content, and you're good to go :) </p> </div> <div style="color: #eee; background-color: #1a1a1a; min-height: 300px; padding: 24px;"> <!-- Sample #2 ============================================= --> <header class="s24-bar text-color-black bg-color-white p-a"> <!-- Put your brand here --> <div class="s24-bar__brand"> <div style="max-width: 200px;"> <a href="#">Brand</a> </div> </div> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse" id="collapse-2"> <nav role="navigation"> <ul class="s24-list s24-list--visual-collapsible"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Home</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">About</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Portfolio</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Contact</a></li> </ul> </nav> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> <!-- Put your toggle button here, the button which toggles the `s24-bar__collapse` element --> <div class="s24-bar__toggle"> <a class="s24-js-toggle s24-link s24-link--effect-alpha" href="#" data-target="#collapse-2"><i class="fa fa-bars fa-fw"></i></a> </div> </header> <p class="lead text-xs-center"> Compatible with all modern browsers, frameworks, and web environments. Using <strong>Pure HTML5</strong> or a front-end framework such as <strong>Bootstrap</strong>, <strong>MDL</strong>, <strong>Foundation</strong>, or anything else? It doesn't make any difference! You're in good company. </p> <p class="text-xs-center" style="font-size: 12px; opacity: .6;">IE10, IE11, Firefox, Safari, Opera, Chrome, Edge</p> </div> <div style="color: #fff; background-color: #42a5f5; min-height: 300px; padding: 24px;"> <!-- Sample #3 ============================================= --> <header class="s24-bar text-color-white bg-color-black p-a"> <!-- Put your brand here --> <div class="s24-bar__brand"> <div style="max-width: 200px;"> <a href="#">Brand</a> </div> </div> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse s24-bar__collapse--state-open" id="collapse-3"> <!-- This collapse is open by default because of the .s24-bar__collapse--state-open CSS class. So we don't need the toggle element and Toggle JavaScript block to open it. --> <nav role="navigation"> <ul class="s24-list s24-list--visual-collapsible"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Home</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">About</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Portfolio</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Contact</a></li> </ul> </nav> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> </header> <p class="lead text-xs-center"> <strong>Fully responsive!</strong> Just feel free to resize your browser and checkout how responsive the block is. In this example the collapsible content is open by default in mobile view and doesn't need any toggle button to open/close it. Cheers! </p> </div> <div style="color: #fff; background-color: #26c6da; min-height: 300px; padding: 24px;"> <!-- Sample #4 ============================================= --> <header class="s24-bar s24-bar--visual-brand-focus text-color-white bg-color-black p-a"> <!-- Put your brand here --> <div class="s24-bar__brand text-xs-center"> <div> <a href="#">Brand</a> </div> </div> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse" id="collapse-4"> <nav role="navigation"> <ul class="s24-list s24-list--visual-collapsible"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Home</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">About</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Portfolio</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Contact</a></li> </ul> </nav> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> <!-- Put your toggle button here, the button which toggles the `s24-bar__collapse` element --> <div class="s24-bar__toggle"> <a class="s24-js-toggle s24-link s24-link--effect-alpha" href="#" data-target="#collapse-4"><i class="fa fa-bars fa-fw"></i></a> </div> </header> <p class="lead text-xs-center"> <strong>Brand focus!</strong> Simply create a brand focused header which beautifully replaces the brand and collapsible navigation in mobile view. </p> </div> <div style="color: #fff; background-color: #26a69a; min-height: 300px; padding: 24px;"> <!-- Sample #5 ============================================= --> <header class="s24-bar s24-bar--visual-brand-focus text-color-black bg-color-white p-a"> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse" id="collapse-5"> <div class="m-y"> <span class="p-y">I will be collapsed!</span> <form class="form-inline"> <div class="input-group"> <input type="text" class="form-control" placeholder="Search for..."> <span class="input-group-btn"> <button class="btn btn-secondary" type="button">Go!</button> </span> </div> </form> </div> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities s24-bar__utilities--visual-wide text-xs-left text-sm-right"> I won't be collapsed! </div> <!-- Put your toggle button here, the button which toggles the `s24-bar__collapse` element --> <div class="s24-bar__toggle"> <a class="s24-js-toggle s24-link s24-link--effect-alpha" href="#" data-target="#collapse-5"><i class="fa fa-bars fa-fw"></i></a> </div> </header> <p class="lead text-xs-center"> <strong>Collapse any content!</strong> You can use the component's structure for any kind of content. So generally speaking, you're not limited in making headers or footers only, you can simply create any kind of bar. Feel free to resize your browser to see which part is going to be collapsed in mobile view. </p> </div> <div style="color: #fff; background-color: #66bb6a; min-height: 300px; padding: 24px;"> <!-- Sample #6 ============================================= --> <footer class="s24-bar text-color-white bg-color-black p-a"> <!-- NOTE: Add .s24-bar--pos-fixed-top or .s24-bar--pos-fixed-bottom CSS classes to the block to stick it at top or bottom --> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities s24-bar__utilities--visual-wide"> <!-- NOTE: .s24-bar__utilities--visual-wide CSS class makes the element to have 100% width but also let next elements sit gently beside them. --> Copyrights © All Rights Reserved by <a class="s24-link s24-link--effect-alpha" href="#">Company</a> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> </footer> <p class="lead text-xs-center"> <strong>Sticky header or footer!</strong> Simply set a position fix CSS style to the block itself, and it will be fixed (of course this example itself is not fixed! But we've mentioned how to make it fix in HTML comments). </p> </div> <div style="color: #fff; background-color: #ffa726; min-height: 300px; padding: 24px;"> <!-- Sample #7 ============================================= --> <footer class="s24-bar text-color-white"> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities w-full bg-color-black m-a-0"> <div class="container"> <div class="row m-y"> <div class="col-sm-8"> <h4>Simple Modular Responsive Header</h4> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p> </div> <div class="col-sm-4"> <h4>Address</h4> <address> <strong>Company, Inc.</strong><br> 12345 Name Street, Suite 900<br> San Francisco, CA 94103<br> <abbr title="Phone">P:</abbr> (123) 555-2424 </address> </div> </div> </div> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities w-full bg-color-black-secondary m-a-0"> <div class="container"> <div class="row"> <div class="col-sm-9"> <p style="margin-top: 14px;"> Copyrights © All Rights Reserved by <a class="s24-link s24-link--effect-alpha" href="#">Company</a> </p> </div> <div class="col-sm-3 text-xs-left text-sm-right"> <ul class="s24-list m-y"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> </div> </div> </div> </footer> <p class="lead text-xs-center"> <strong>Any content!</strong> As you can see the block can have any content inside of itself, in any layout! In this example we've used the Bootstrap framework grid system to make a nice responsive footer. </p> </div> <div style="color: #fff; background-color: #ef5350; min-height: 300px; padding: 24px;"> <!-- Sample #8 ============================================= --> <header class="s24-bar text-color-white p-a curved" style="background-color: #df4340;"> <!-- Put your brand here --> <div class="s24-bar__brand"> <div style="max-width: 200px;"> <a href="#">Brand</a> </div> </div> <!-- Put anything that you like it to be collapsed in mobile view here --> <div class="s24-bar__collapse" id="collapse-8"> <nav role="navigation"> <ul class="s24-list s24-list--visual-collapsible"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Home</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">About</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Portfolio</a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#">Contact</a></li> </ul> </nav> </div> <!-- Put any utility content here, such as social icons --> <div class="s24-bar__utilities"> <ul class="s24-list"> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-facebook fa-fw"></i></a></li> <li class="s24-list__item"><a class="s24-link s24-link--effect-alpha" href="#" role="button"><i class="fa fa-twitter fa-fw"></i></a></li> </ul> </div> <!-- Put your toggle button here, the button which toggles the `s24-bar__collapse` element --> <div class="s24-bar__toggle"> <a class="s24-js-toggle s24-link s24-link--effect-alpha" href="#" data-target="#collapse-8"><i class="fa fa-bars fa-fw"></i></a> </div> </header> <p class="lead text-xs-center"> <strong>Any color and feel!</strong> Goal of this component is to let you build responsive header & footer easy and fast. And this is its only goal! So it doesn't force you to use any specific text, background, border, and etc. colors or styles! It just styles the layout for you. The rest is your choice :) </p> </div> <div class="text-xs-center" style="color: #fff; background-color: #1a1a1a; padding: 100px;"> <h2>Looking for more?</h2> <p class="lead"> For a more professional header, footer, navigation, mega menu, and sidebar, I recommend you to checkout the awesome <a class="s24-link" style="color: #66bb6a;" href="https://myflashlabs.github.io/24component-bars/">24component-bars</a> jQuery plugin and CSS framework. It lets you create almost any kind of bar fast and easy. Cheers! </p> <h4>Like it? Share it!</h4> <p class="lead"> Please share and help us get recognized by more people. </p> </div>
/* For a more professional header, footer, navigation, mega menu, and sidebar, I recommend you to checkout this awesome jQuery plugin and CSS framework: https://myflashlabs.github.io/24component-bars/ It lets you create almost any kind of bar fast and easy. Cheers! */ .pr { margin: 0; font-family: Arial, sans-serif; } .pr body { margin: 0; } *, *:after, *:before { box-sizing: border-box; } .m-a-0 { margin: 0 !important; } .m-t-0 { margin-top: 0 !important; } .m-r-0 { margin-right: 0 !important; } .m-b-0 { margin-bottom: 0 !important; } .m-l-0 { margin-left: 0 !important; } .m-x-0 { margin-right: 0 !important; margin-left: 0 !important; } .m-y-0 { margin-top: 0 !important; margin-bottom: 0 !important; } .m-a { margin: 12px !important; } .m-t { margin-top: 12px !important; } .m-r { margin-right: 12px !important; } .m-b { margin-bottom: 12px !important; } .m-l { margin-left: 12px !important; } .m-x { margin-right: 12px !important; margin-left: 12px !important; } .m-y { margin-top: 12px !important; margin-bottom: 12px !important; } .m-x-auto { margin-right: auto !important; margin-left: auto !important; } .p-a-0 { padding: 0 !important; } .p-t-0 { padding-top: 0 !important; } .p-r-0 { padding-right: 0 !important; } .p-b-0 { padding-bottom: 0 !important; } .p-l-0 { padding-left: 0 !important; } .p-x-0 { padding-right: 0 !important; padding-left: 0 !important; } .p-y-0 { padding-top: 0 !important; padding-bottom: 0 !important; } .p-a { padding: 12px !important; } .p-t { padding-top: 12px !important; } .p-r { padding-right: 12px !important; } .p-b { padding-bottom: 12px !important; } .p-l { padding-left: 12px !important; } .p-x { padding-right: 12px !important; padding-left: 12px !important; } .p-y { padding-top: 12px !important; padding-bottom: 12px !important; } .text-xs-left { text-align: left !important; } .text-xs-right { text-align: right !important; } .text-xs-center { text-align: center !important; } @media (min-width: 768px) { .text-sm-left { text-align: left !important; } .text-sm-right { text-align: right !important; } .text-sm-center { text-align: center !important; } } @media (min-width: 992px) { .text-md-left { text-align: left !important; } .text-md-right { text-align: right !important; } .text-md-center { text-align: center !important; } } @media (min-width: 1200px) { .text-lg-left { text-align: left !important; } .text-lg-right { text-align: right !important; } .text-lg-center { text-align: center !important; } } .w-full { width: 100% !important; } .bg-color-white { background-color: #eee !important; } .bg-color-black { background-color: #1a1a1a !important; } .bg-color-white-secondary { background-color: #e1e1e1 !important; } .bg-color-black-secondary { background-color: #272727 !important; } .text-color-white { color: #eee !important; } .text-color-black { color: #1a1a1a !important; } .curved { border-radius: 4px !important; } .rounded { border-radius: 100px !important; } .s24-bar { position: relative; display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; -webkit-box-align: center; -ms-flex-align: center; align-items: center; -ms-flex-line-pack: center; align-content: center; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; width: 100%; min-height: 24px; margin-bottom: 24px; -webkit-transition: all 0.3s; transition: all 0.3s; -webkit-transition-timing-function: cubic-bezier(0.09, 0.68, 0, 0.99); transition-timing-function: cubic-bezier(0.09, 0.68, 0, 0.99); z-index: 2000; } .s24-bar:before, .s24-bar:after { content: ''; display: table; } .s24-bar:after { clear: both; } .s24-bar--pos-fixed-top, .s24-bar--pos-fixed-bottom { position: fixed; margin-bottom: 0; z-index: 2010; } .s24-bar--pos-fixed-top { top: 0; left: 0; } .s24-bar--pos-fixed-bottom { bottom: 0; left: 0; } @media (min-width: 768px) { .s24-bar--visual-brand-focus .s24-bar__brand { -webkit-box-flex: 1; -ms-flex: 1 auto; flex: 1 auto; } } @media (min-width: 768px) { .s24-bar--visual-brand-focus .s24-bar__collapse { -webkit-box-ordinal-group: 0; -ms-flex-order: -1; order: -1; -webkit-box-flex: 0; -ms-flex: 0 1 auto; flex: 0 1 auto; } } .s24-bar__brand, .s24-bar__collapse, .s24-bar__utilities, .s24-bar__toggle { margin: 4px; -webkit-transition: all 0.3s; transition: all 0.3s; } .s24-bar__utilities--visual-wide { -webkit-box-flex: 1; -ms-flex: 1 auto; flex: 1 auto; } .s24-bar__brand { -webkit-box-flex: 1; -ms-flex: 1 100%; flex: 1 100%; font-size: 24px; line-height: 1.3333333; overflow: hidden; } .s24-bar__brand a { display: inline-block; } .s24-bar__brand a:link, .s24-bar__brand a:visited, .s24-bar__brand a:hover, .s24-bar__brand a:active, .s24-bar__brand a:focus { color: inherit; text-decoration: none; } .s24-bar__brand img { max-width: 100%; height: auto; vertical-align: initial; } @media (min-width: 480px) { .s24-bar__brand { -webkit-box-flex: 1; -ms-flex: 1 auto; flex: 1 auto; } } @media (min-width: 768px) { .s24-bar__brand { -webkit-box-flex: 0; -ms-flex: 0 1 auto; flex: 0 1 auto; } } @media (min-width: 768px) { .s24-bar__toggle { display: none; } } .s24-bar__collapse { display: none; margin: 0; -webkit-box-flex: 1; -ms-flex: 1 100%; flex: 1 100%; -webkit-box-ordinal-group: 100; -ms-flex-order: 99; order: 99; -webkit-transition: padding 0.3s; transition: padding 0.3s; border-top: 1px solid rgba(204, 204, 204, 0.4); } @media (min-width: 768px) { .s24-bar__collapse { display: block !important; height: auto !important; margin: 4px; -webkit-box-flex: 2; -ms-flex: 2 0; flex: 2 0; -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; border-top: 0; } } .no-js .s24-bar__collapse, .s24-bar__collapse.s24-bar__collapse--state-open { display: block; } .s24-bar--pos-fixed-top .s24-bar__collapse, .s24-bar--pos-fixed-bottom .s24-bar__collapse { max-height: 340px; overflow-y: auto; } @media (max-device-width: 480px) and (orientation: landscape) { .s24-bar--pos-fixed-top .s24-bar__collapse, .s24-bar--pos-fixed-bottom .s24-bar__collapse { max-height: 200px; } } @media (min-width: 768px) { .s24-bar--pos-fixed-top .s24-bar__collapse, .s24-bar--pos-fixed-bottom .s24-bar__collapse { overflow-y: visible; } } .s24-list { margin: 0; padding: 0; list-style-type: none; } @media (max-width: 767px) { .s24-list--visual-collapsible > .s24-list__item { display: list-item; padding: 0; } .s24-list--visual-collapsible > .s24-list__item:hover { background-color: rgba(204, 204, 204, 0.2); } .s24-list--visual-collapsible .s24-link { display: block; width: 100%; padding: 8px; } .s24-list--visual-collapsible .s24-link:hover, .s24-list--visual-collapsible .s24-link:active, .s24-list--visual-collapsible .s24-link:focus { opacity: 1; } } .s24-list__item { display: inline-block; padding: 4px; -webkit-transition: all 0.3s; transition: all 0.3s; } .s24-list__item:first-child { margin: 0; } .s24-link:link, .s24-link:visited, .s24-link:hover, .s24-link:active, .s24-link:focus { color: inherit; -webkit-transition: all 0.3s; transition: all 0.3s; text-decoration: none; } .s24-link[disabled] { opacity: 0.4; pointer-events: none; } .s24-link--effect-alpha:hover, .s24-link--effect-alpha:active, .s24-link--effect-alpha:focus { opacity: .6; }
'use strict'; $('.s24-js-toggle').on('click.s24toggle', function (e) { e.preventDefault(); var $target = $($(e.currentTarget).attr('data-target')); $target.animate({ height: 'toggle' }, 300); });

Related: See More


Questions / Comments: