When the "anim" class is activated, it should smoothly fade in from top to bottom
Here is the corresponding HTML code:
<div class="col-xs-6" style="position:relative;">
<img src="<?= site_url('assets/image/right_bg.png'); ?>" style="width:100%; position:absolute; top:0; left:0;">
<img class="anim" src="<?= site_url('assets/image/right_cover_1-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_2-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_3-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_4-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_5-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_6-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_7-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_8-11.png'); ?>">
<img class="anim" src="<?= site_url('assets/image/right_cover_9-11.png'); ?>">
<img src="<?= site_url('assets/image/right_bg_mid.png'); ?>" style="width:100%; position:absolute; top:0; left:0;">
</div>
The CSS styling for the animation is as follows:
.anim {
display:none;
width:100%;
position:absolute;
top:-100px;
left:0;
}
To achieve the desired effect of the animation, you can use the jQuery functions show()
and top:0px
. Thank you for your assistance.