How can I automatically and frequently change the size of my div when it is scrolled into view?
HTML
<div id="contact" class="fadeInBlock">
<div class="map">
<div class="pointer">
<div class="dot"></div>
</div>
<div class="address">
<address></address>
</div>
</div>
</div>
(The div that will change height and width is the .pointer).
JS
$(function() {
$(window).load(function() {
$('.pointer').css({"width": "60px", "height": "60px"});
});
});
I have only addressed changing the width and height. If there is any confusion, please let me know so I can clarify further.