Advertisement
Hadi1989

Untitled

May 18th, 2020
1,219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.84 KB | None | 0 0
  1. body{
  2.     margin: 0;
  3.     padding: 0;
  4.     width: 100%;
  5.     height: 100vh;
  6.     display: flex;
  7.     align-items: center;
  8.     justify-content: center;
  9.     background-color: #d236e0;
  10. }
  11. .container{
  12.     position: relative;
  13.     width: 360px;
  14.     height: 620px;
  15.     margin-top: 150px;
  16.     background-color: rgba(0, 0, 0, .1);
  17.     transform: rotate(-30deg) skew(25deg) scale(.8);
  18. }
  19. .container img{
  20.     position: absolute;
  21.     width: 100%;
  22.     transition: 0.5s;
  23. }
  24. .container:hover img:nth-child(4){
  25.     transform: translate(160px, -160px);
  26.     opacity: 1;
  27. }
  28. .container:hover img:nth-child(3){
  29.     transform: translate(120px,-120px);
  30.     opacity: .8;
  31. }
  32. .container:hover img:nth-child(2){
  33.     transform: translate(80px,-80px);
  34.     opacity: .6;
  35. }
  36. .container:hover img:nth-child(1){
  37.     transform: translate(40px, -40px);
  38.     opacity: .4;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement