Its hard to tell you what the exact code is.
If you go tools -> web developer -> page source
...... all the code is there.
I haven't put any of the JavaScript stuff inside the head element because (for what ever reason) it won't work.
I had to put it at the bottom of the body element:
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.waypoints.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
var $dipper = $('.topadvert');
$dipper.waypoint(function () {
$dipper.addClass('js-dipper-animate');
}, { offset: '80%'});
var $dipper2 = $('.topadvert2');
$dipper2.waypoint(function () {
$dipper2.addClass('js-dipper-animate2');
}, { offset: '80%'});
</script>
And these are the HTML elements which are being targeted:
<div class="col-lg-6 col-lg-offset-3 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 topadvert" style="border: 1px solid black; border-radius: 15px; text-align: center; margin-top: 30px;">
<div style="padding-top: 30px; padding-bottom: 20px;" id="topadvert">
<p style="font-size: 20px; font-weight: bold; font-family: century gothic; color: black;">A Leading 'Soda Blasting' Company In Manchester!</p></div>
</div>
.................. which doesn't work in firefox
and:
<div class="col-lg-5 col-lg-offset-1 col-md-5 col-md-offset-1 col-sm-10 col-sm-offset-1 topadvert2">
<p style="font-size: 25px; color: #00f; line-height: 150%; font-family: century gothic;" class="sidetext">Soda blasting is the answer to difficult cleaning problems. Delicate fixtures and glass cannot be sandblasted or media blasted because of etching.</p>
</div>
.............. which does work in firefox.
And below is the asscioted css:
.topadvert {
display: block;
opacity: 0;
transition: all 1000ms ease-in;
}
.js-dipper-animate {
opacity: 1;
}
.topadvert2 {
display: block;
opacity: 0;
transition: all 1000ms ease-in;
}
.js-dipper-animate2 {
opacity: 1;
}
Its making me pull my hair our!
Works in every browser apart from firefox
What am I doing wrong?