-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better example for center-fixed sliders
- Loading branch information
lgersen
committed
Jun 21, 2024
1 parent
44744a0
commit d53446c
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#from-center .noUi-handle[data-handle="0"] { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var fromCenterSlider = document.getElementById('from-center'); | ||
|
||
noUiSlider.create(fromCenterSlider, { | ||
start: [50, 80], | ||
behaviour: 'unconstrained', | ||
connect: true, | ||
range: { | ||
'min': 0, | ||
'max': 100 | ||
} | ||
}); |