smyld-lib-scroll-visible
Version:
Library that detects the elements when they are finally visible via scrolling
21 lines (18 loc) • 770 B
HTML
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Visible by Scrolling </title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
</head>
<body>
<div id="mainContent" class="testDiv" style="top:2100px;" shown="showEl">
</div>
<div id="part1" class="testDiv" style="top:2400px;" shown="showEl">I am there</div>
<div id="part1" class="testDiv" style="top:2700px;" shown="showEl">I am there</div>
<div id="part1" class="testDiv" style="top:3000px;right:0px;" shown="showEl1">I am there</div>
</body>
<script src='main.js'></script>
</html>