I would like to re-create this revealing sticky-footer effect found at http://www.akc.org/dog-breeds/
- I know the footer has to be fixed.
- I know the content needs to have a higher
z-index
- I'm guessing (sort of) that the body needs to have a
margin-bottom
which is equal to the height of the footer???
Please would someone help me out.
I'm using Twitter Bootstrap 4. The general markup looks like this:
<body>
<div class="container"> <!-- This part should scroll up to reveal the footer below -->
<!-- Content goes in here -->
</div>
<footer class="footer"> <!-- This should be hidden initially -->
<div class="container">
<div class="row">
<!-- Footer stuff goes in here -->
</div>
</div>
</footer>
</body>