Filter range slider

Developer
Size
4,220 Kb
Views
74,888

How do I make an filter range slider?

What is a filter range slider? How do you make a filter range slider? This script and codes were developed by Adem Ilter on 11 June 2022, Saturday.

Filter range slider Previews

Filter range slider - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>filter range slider</title> <link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="slider"> <div class="range range--water"></div>
</div>
<div class="slider"> <div class="range range--ambient"></div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/3561/jquery.nouislider.all.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Filter range slider - Script Codes CSS Codes

*, *:after, *:before { box-sizing: inherit;
}
html { box-sizing: border-box; font-family: 'Roboto Condensed', sans-serif; font-weight: 400;
}
body { background-color: rgba(144, 164, 174, 0.4);
}
/*------------------------------------*\
noUiSlider
\*------------------------------------*/
.slider { margin: 80px auto; width: 320px;
}
.range.noUi-target { position: relative; direction: ltr;
}
.range.noUi-background { height: 3px; background: #FAFAFA; border-radius: 3px;
}
.noUi-target,
.noUi-target * { -webkit-touch-callout: none; -ms-touch-action: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.noUi-connect { background: #3FB8AF; -webkit-transition: background 450ms; transition: background 450ms;
}
.noUi-base { position: relative; z-index: 2; width: 100%; height: 100%; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0);
}
.noUi-origin { position: absolute; right: 0; top: 0; left: 0; bottom: 0;
}
.noUi-handle { z-index: 1; position: relative; width: 16px; height: 23px; left: -8px; top: -10px; cursor: ew-resize; border: 1px solid #90A4AE; background: #FFF; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.noUi-handle:before, .noUi-handle:after { content: ""; position: absolute; top: 4px; left: 50%; width: 1px; height: 14px; background: #BCC8CE;
}
.noUi-handle:before { margin-left: -2px;
}
.noUi-handle:after { margin-left: 1px;
}
.noUi-handle.noUi-active, .noUi-state-tap .noUi-handle { border-color: #d8774c; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.noUi-stacking .noUi-handle { z-index: 10;
}
[disabled] .noUi-handle { cursor: not-allowed;
}
.noUi-state-tap .noUi-origin { -webkit-transition: left 0.3s, top 0.3s; transition: left 0.3s, top 0.3s;
}
.noUi-state-drag * { cursor: inherit !important;
}
.tooltip { position: absolute; top: 100%; left: 50%; margin-top: 10px; font-weight: 700; -webkit-transform: translateX(-50%); transform: translateX(-50%); padding: 2px 6px; font-size: 14px; text-align: center; color: #3B4B53; background: #fff; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.tooltip:before { content: ''; position: absolute; bottom: 100%; left: 50%; border-width: 4px; margin-left: -4px; border-color: transparent transparent #fff transparent; border-style: solid;
}
/*------------------------------------*\
noUiSlider-Pips
***
noUiSlider - 7.0.10 - 2014-12-27 14:50:47
\*------------------------------------*/
.noUi-pips { position: absolute; padding-top: 4px; height: 50px; top: 100%; left: 0; color: #3B4B53; width: 100%;
}
.noUi-value { width: 40px; font-size: 13px; position: absolute; text-align: center; margin-left: -20px; padding-top: 14px;
}
.noUi-value-sub { color: #ccc; height: 10px; padding-top: 15px;
}
.noUi-marker { position: absolute; margin-left: -1px; width: 1px; height: 5px; background: #90A4AE;
}
.noUi-marker-large { width: 2px; height: 10px;
}

Filter range slider - Script Codes JS Codes

$(".range--water") .noUiSlider({ start: 23, step: 1, range: { min: 0, max: 35 }
}) .noUiSlider_pips({ mode: 'values', density: 5, values: [3, 32], stepped: true, format: wNumb({ decimals: 0, //prefix: '+', postfix: '℃' })
}) .on('set', function (event, value) { if (value < 3) { $(this).val(3); } else if (value > 32) { $(this).val(32); }
});
$(".range--ambient") .noUiSlider({ start: 32, step: 1, range: { min: -18, max: 47 }
}) .noUiSlider_pips({ mode: 'values', density: 5, values: [-15, 44], stepped: true, format: wNumb({ decimals: 0, //prefix: '+', postfix: '℃' })
}) .on('set', function (event, value) { if (value < -15) { $(this).val(-15); } else if (value > 44) { $(this).val(44); }
});
$(".range").Link('lower').to('-inline-<div class="tooltip"></div>', function (value) { $(this).html('<span>' + deneme(value) + "℃" + '</span>');
});
function deneme(value) { value = value | 0; return value;
}
Filter range slider - Script Codes
Filter range slider - Script Codes
Home Page Home
Developer Adem Ilter
Username ademilter
Uploaded June 11, 2022
Rating 4
Size 4,220 Kb
Views 74,888
Do you need developer help for Filter range slider?

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!

Adem Ilter (ademilter) Script Codes
Create amazing Facebook ads with AI!

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!