I just need small jquery help. So we would like to change the value of text on the left element .. So the number (1) should be changed to number (2) once user scroll to 2nd slide.
The body class changes to once you scroll: fp-viewing-1
Here video of the website: https://drive.google.com/file/d/10OcUoyvh1Xr3pWmxqzdR67wI8IlkPsNF/view?usp=sharing
Here is what I tried:
<script>
$(document).ready(function() {
if ($('body').attr("class") == "fp-viewing-1") {
$('#count').addClass('something');
}
});
</script>
Once the class is added I was thinking to change the html value with css..
content: "";