"image perspective animation"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="img-anim">
<img class="imgzoom" src="https://placeimg.com/640/480/any">
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js"></script>
<script>
TweenMax.fromTo(".imgzoom", 2,
{x:0, y:640, scale: 2, rotationX:"10deg", rotationY:"5deg",rotationZ:"10deg", transformPerspective:1280,ease:Power1.easeInOut, delay:.1},
{x:0, y:0, scale:1, rotation:0, rotationX:0, rotationY:0, transformPerspective:0,rotationZ:"0deg",duration: "5", ease:Power1.easeOut},"2");
</script>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
.imgzoom{
width: 640px;
height: 480px;
transform: perspective(1280px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: