【CSS】How to add an animation that rotates / enlarges an image and fade it in | Demo page

※Please check using Developer tools

Sponsored links

CSS

.block {
  width: 500px;
  margin: 70px auto 0;
  transform: scale(0) rotate(720deg);
  opacity: 0;
  transition: all .5s;
}

.block.active {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

@media screen and (max-width:640px){
  .block {
    width: 100%;
  }
}

JavaScript

$(window).on('load', function(){
  $(".block").addClass("active");
});