Slider
How do I make an slider?
What is a slider? How do you make a slider? This script and codes were developed by Kevin on 13 October 2022, Thursday.
Slider - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Slider</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <nav class="navbar"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand" href="#">Avant</a> </div> </div> </nav> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-7 col-sm-offset-1 main"> <section id="loan--header"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-2 loan--header-icon"> <i class="fa fa-thumbs-o-up fa-5x" aria-hidden="true"></i> </div> <div class="col-xs-12 col-sm-12 col-md-10 loan--header-text"> <h3>Congrats! You've been pre-approved for up to $8,000 from WebBank.</h3> </div> </div> </section> <section id="loan--slider"> <div class="row"> <div class="col-xs-12 col-sm-12 loan--headline"> <h5>Drag to choose a loan amount</h5> </div> </div> <div class="row"> <div class="col-xs-12 col-sm-12 range-slider"> <div id="range" class="cntr"></div> </div> </div> <div class="row"> <div class="col-sm-12"> <div class="loan--content"> <div class="row"> <div class="col-xs-12 col-sm-5 col-md-3"> <i class="fa fa-money fa-2x" aria-hidden="true"></i> <h5>Principal Loan Amount</h5> <div id="loan-amount"></div> <p>The principal loan amount that you agree to pay back</p> </div> <div class="col-xs-12 col-sm-2 col-md-1"> <h3>-</h3> </div> <div class="col-xs-12 col-sm-5 col-md-3"> <i class="fa fa-file-text-o fa-2x" aria-hidden="true"></i> <h5>Administration Fee</h5> <h4>$260</h4> <p>This fee is non-refundable and is deducted from the Principal Loan Amount when the loan is funded</p> </div> <div class="col-xs-12 col-sm-12 col-md-1"> <h3>=</h3> </div> <div class="col-xs-12 col-sm-12 col-md-3"> <i class="fa fa-university fa-2x" aria-hidden="true"></i> <div class="loan--received"> <h5>Amount Received</h5> <div id="loan-received"></div> </div> <p>The amount that will be deposited</p> </div> </div> </div> </div> </div> </section> <section id="loan--options"> <div class="row"> <div class="col-sm-12 loan--headline"> <h5>Which option meets your needs?</h5> </div> </div> <div class="row loan--option flex-parent" id="loanOption1"> <div class="col-xs-12 col-sm-2 radio--container flex-item"> <input type="radio" name="radio" id="radio1" value="option1"> </div> <div class="col-xs-12 col-sm-2"> <h6>Term</h6> <h6>36</h6> <small>months</small> </div> <div class="col-xs-12 col-sm-2"> <h6>Payments</h6> <h6>$285.67</h6> <small>per month</small> </div> <div class="col-xs-12 col-sm-2"> <h6 class="tool-tip apr">APR<span class="tip-content"><strong>APR is the total annual cost of the loan to the borrower, including any fees, expressed as a percentage.</strong> The APR of 34.57% reflects the interest rate of 33.65% plus the administration fee of $260. Since additional costs such as the administration fee are factored into the calulation of the APR, the APR will typically be higher than the interest rate.</span> </h6> <h6>35.95%</h6> </div> <div class="col-xs-12 col-sm-2"> <h6>Interest Rate</h6> <h6>32.33%</h6> </div> </div> <div class="row loan--option flex-parent" id="loanOption2"> <div class="col-xs-12 col-sm-2 radio--container flex-item"> <input type="radio" name="radio" id="radio2" value="option2"> </div> <div class="col-xs-12 col-sm-2"> <h6>Term</h6> <h6>48</h6> <small>months</small> </div> <div class="col-xs-12 col-sm-2"> <h6>Payments</h6> <h6>$285.67</h6> <small>per month</small> </div> <div class="col-xs-12 col-sm-2"> <h6 class="tool-tip apr">APR<span class="tip-content"><strong>APR is the total annual cost of the loan to the borrower, including any fees, expressed as a percentage.</strong> The APR of 34.57% reflects the interest rate of 33.65% plus the administration fee of $260. Since additional costs such as the administration fee are factored into the calulation of the APR, the APR will typically be higher than the interest rate.</span> </h6> <h6>34.57%</h6> </div> <div class="col-xs-12 col-sm-2"> <h6>Interest Rate</h6> <h6>32.33%</h6> </div> </div> </section> <section id="loan--agreement"> <div class="row"> <div class="col-xs-12 col-sm-2"> <img src="http://placehold.it/50x50"> </div> <div class="col-xs-12 col-sm-7 col-sm-offset-1"> <button class="btn btn--agreement"> Continue To Agreement </button> </div> </div> </section> </div> <div class="hidden-xs col-sm-4 sidebar"> <section class="sidebar--top"> <div class="row flex-parent"> <div class="col-sm-4 flex-item"> <img src="http://placehold.it/50x50"> </div> <div class="col-sm-8"> <h5>Security & privacy are #1</h5> <p>We use 256-bit SSL protection and strict, high levels of security & encryption standards.</p> </div> </div> </section> <section class="sidebar--middle"> <div class="row flex-parent"> <div class="col-sm-4 flex-item"> <img src="http://placehold.it/50x50"> </div> <div class="col-sm-8"> <h5>Questions? We can help</h5> <p>Call us at <a href="tel:8557527008">855-752-7008.</a></p> </div> </div> </section> <section class="sidebar--bottom"> <h5>Testimonials</h5> <blockquote> <p>I loved working with Avant, they were always there to help me. I nreally needed the money and got it quickly, thanks!</p> <cite> - Jane K, Chicago, IL </cite> </blockquote> <img src="http://placehold.it/75x50"> </section> </div> </div> </div> <footer> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-7 col-sm-offset-1"> <h6>Important information about procedures for opening a new account:</h6> <p>To help the government fight the funding of terrorism and money laundering activities, Federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account. What this means for you: When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you. We may also ask to see your driver’s license or other identifying documents. </p> <p> *Amazon.com is not a sponsor of this promotion. Except as required by law, Amazon.com Gift Cards ("GCs") cannot be transferred for value or redeemed for cash. GCs may be used only for purchases of eligible goods at Amazon.com or certain of its affiliated websites. For complete terms and conditions, see <a href="www.amazon.com/gc-legal" target="_blank" alt="amazon">www.amazon.com/gc-legal</a>. GCs are issued by ACI Gift Cards, Inc., a Washington corporation. All Amazon ® ,™ & © are IP of Amazon.com, Inc. or its affiliates. No expiration date or service fees. </p> <p>Copyright 2015 Avant, Inc. All rights reserved. Need help? <a href="tel:8007125407">800-712-5407</a> </p> </div> </div> </footer> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Slider - Script Codes CSS Codes
html,
body { width: 100%; margin: 0; padding: 0; overflow: auto; overflow-x: hidden; overflow-scrolling: touch;
}
html { background: #F8F9FB;
}
body { overflow-y: scroll; -webkit-overflow-scrolling: touch; background: #F8F9FB; margin: 0 auto; font-size: 100%; color: #515E65; font-family: 'Open Sans', sans-serif;
}
@media (max-width: 767px) { body { text-align: center; }
}
h1,
h2,
h3,
h4,
h5,
h6 { color: #515E65;
}
h3 { font-weight: 700;
}
.fa { color: green;
}
.flex-parent { display: -webkit-box; display: -ms-flexbox; display: flex;
}
.flex-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center;
}
.range-slider { margin: 3em auto;
}
#range { width: 300px; height: 6px; border: 0; margin: 0 auto; border-radius: 100px; background: #fafafa; box-shadow: inset 0px 5px 7px -4px rgba(0, 0, 0, 0.28); outline: none;
}
@media (max-width: 767px) { #range { width: 200px; }
}
#range .ui-slider-handle { -ms-touch-action: none; touch-action: none; position: absolute; margin: -10px; border-radius: 5px; background: -webkit-linear-gradient(#72b661, #56834B); background: linear-gradient(#72b661, #56834B); color: white; border: 1px solid #56834B; height: 25px; line-height: 24px; text-align: center; width: 80px; outline: none; cursor: pointer; font-size: 12px; text-decoration: none; -webkit-transition: -webkit-transform 0.1s ease; transition: -webkit-transform 0.1s ease; transition: transform 0.1s ease; transition: transform 0.1s ease, -webkit-transform 0.1s ease;
}
#range .ui-slider-handle:before { content: '\f0d9'; padding-right: 1em;
}
#range .ui-slider-handle:after { content: '\f0da'; padding-left: 1em;
}
#range .ui-slider-handle:before,
#range .ui-slider-handle:after { font-family: FontAwesome; color: #56834B;
}
#range .ui-slider-handle:hover,
#range .ui-slider-handle:focus { -webkit-transform: scale(1.1); transform: scale(1.1);
}
#range .ui-slider-range { background: #72b661;
}
.cntr { position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%);
}
.btn { border-radius: 0; width: auto; margin: 1 auto; border-radius: 5px; cursor: pointer; text-align: center; display: block;
}
@media (max-width: 767px) { .btn { margin: 1em auto; }
}
.btn--agreement { height: 3em; background: -webkit-linear-gradient(#72b661, #56834B); background: linear-gradient(#72b661, #56834B); text-align: center; color: #fff; border: 1px solid #56834B; font-size: 12px; font-weight: 400; line-height: 10px; -webkit-transition: -webkit-transform 0.1s ease; transition: -webkit-transform 0.1s ease; transition: transform 0.1s ease; transition: transform 0.1s ease, -webkit-transform 0.1s ease;
}
.btn--agreement:before { content: '\f023'; padding-right: 1em; color: #56834B;
}
.btn--agreement:after { content: '\f0da'; padding-left: 1em; color: #fff;
}
.btn--agreement:before,
.btn--agreement:after { font-family: FontAwesome; font-size: 14px;
}
.btn--agreement:hover,
.btn--agreement:focus { -webkit-transform: scale(1.1); transform: scale(1.1); background: -webkit-linear-gradient(#72b661, #56834B); background: linear-gradient(#72b661, #56834B); color: #fff;
}
/* Hover tooltips */
.tool-tip { position: relative; cursor: help;
}
.tool-tip .tip-content { z-index: 9999; position: absolute; top: -10px; right: 9999px; width: 200px; margin-right: -200px; padding: 10px; color: #515E65; background: #fff; box-shadow: 2px 2px 5px #aaa; opacity: 0; -webkit-transition: opacity 250ms ease-out; transition: opacity 250ms ease-out; border-radius: 5px;
}
@media (max-width: 767px) { .tool-tip .tip-content { display: none; }
}
.tool-tip .tip-content:before { content: ' '; position: absolute; top: 18px; left: -16px; width: 0; height: 0; margin-top: -8px; border: 8px solid transparent; border-right-color: #515E65;
}
@media (max-width: 767px) { .tool-tip .tip-content:before { display: none; }
}
.tool-tip:hover .tip-content { right: 0; opacity: 1;
}
.main { background: #FFFFFF; box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.1); height: 100%; border-radius: 0 0 5px 5px; padding: 3em;
}
#loan--header { padding: 0; margin: 2em;
}
@media (max-width: 767px) { #loan--header { text-align: center; }
}
@media (min-width: 768px) { #loan--header { text-align: initial; }
}
@media (min-width: 768px) { .loan--header-icon { text-align: center; }
}
@media (min-width: 992px) { .loan--header-icon { text-align: initial; padding-top: 2em; }
}
#loan--slider,
#loan--options,
#loan--agreement { padding: 1em; margin: 1em auto;
}
.loan--headline { border-bottom: 1px solid #DBE4E8; padding: 0; margin-bottom: 2em;
}
.loan--content { background: #F8F9FB; padding: 2em;
}
@media (min-width: 768px) { .loan--content { text-align: center; }
}
.loan--content h3 { color: #72b661; margin-bottom: 20px;
}
@media (min-width: 768px) { .loan--content h3 { margin-bottom: 10px; padding-top: 1em; }
}
@media (min-width: 992px) { .loan--content h3 { padding-top: 1.5em; }
}
@media (min-width: 1200px) { .loan--content h3 { padding-top: 1em; }
}
.loan--content h5 { font-size: 100%; margin-top: 1em; font-weight: 700;
}
.loan--received { background: #ECF8EA; padding: .2em; margin: 0 auto;
}
.loan--received h6 { color: #72b661;
}
#loan--options { border-bottom: 1px solid #DBE4E8;
}
.loan--option { border: 1px solid #DBE4E8; border-radius: 5px; margin: .5em auto; padding: .5em; line-height: 10px;
}
@media (max-width: 767px) { .loan--option { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
}
.highlight { background: #EBF6FF; border: 1px solid #5298DC; -webkit-transition: all .5s ease; transition: all .5s ease;
}
.apr:after { content: ' \f059'; color: #515E65; font-family: FontAwesome;
}
.navbar { background: #2C3947; height: 60px; top: 0; color: #fff; border-radius: 0; margin-bottom: 0;
}
@media (max-width: 767px) { .navbar { text-align: center; }
}
.navbar .navbar-brand { text-shadow: none; color: #fff;
}
.sidebar { padding: 2em; color: #515E65;
}
.sidebar blockquote { border: none;
}
.sidebar cite { font-size: 10px; color: #B6C3C9;
}
.sidebar--top,
.sidebar--middle { border-bottom: 2px solid #DBE4E8;
}
.sidebar--top,
.sidebar--middle,
.sidebar--bottom { padding-bottom: 2em; padding: 1em;
}
.sidebar--bottom p { font-size: 10px;
}
footer { margin: 2em auto 4em;
}
Slider - Script Codes JS Codes
//range-slider
(function() { $('#range').slider({ range: 'min', min: 261, max: 8000, animate: true, slide: function(e, ui) { var val = ui.value, total = (val - 260).toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"); price = ui.value.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,"); return $('.ui-slider-handle').html('$' + price) && $('#loan-amount').html('<h4>$' + price + '</h4>') && $('#loan-received').html('<h4>$' + total + '</h4>'); } }); $('.ui-slider-handle').html('$' + '261'); $('#loan-amount').html('<h4>' + '$261' + '</h4>'); $('#loan-received').html('<h4>' + '$1' + '</h4>');
}.call(this));
$('input[type="radio"]').on('click', function() { var option1 = $('#loanOption1'), option2 = $('#loanOption2'); if ($('#radio1').is(':checked')) { option1.addClass('highlight'); } else { option1.removeClass('highlight'); } if ($('#radio2').is(':checked')) { option2.addClass('highlight'); } else { option2.removeClass('highlight'); }
});
Developer | Kevin |
Username | gnarfugh |
Uploaded | October 13, 2022 |
Rating | 3 |
Size | 5,806 Kb |
Views | 22,264 |
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 |
Old calculator | 2,815 Kb |
A Pen by kevin | 3,018 Kb |
Flex dropdown nav | 3,962 Kb |
Hamburger | 2,396 Kb |
Columns flex medicare | 3,195 Kb |
Hover icon link over image | 2,915 Kb |
Responsive Table | 2,303 Kb |
Google Maps api | 2,795 Kb |
Slider | 5,806 Kb |
Image slider | 3,393 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 |
CSS Gem Badge | Orchard | 3,335 Kb |
Personal Logo Animation | Lloydwheeler | 3,795 Kb |
Slider | Mohammed-fawzy | 2,634 Kb |
Ghost Buttons with CSS3 | Mithicher | 2,509 Kb |
Geildanke typography | Fischaela | 3,249 Kb |
Simple DevTools | Deegill | 2,511 Kb |
Basecamp 3 Document | Lachlanjc | 3,811 Kb |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Navier Stoke Fluid Simulation | Esimov | 8,584 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!