_components.img.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. * Avatar
  3. */
  4. @keyframes rotateAvatar{
  5. 100% {
  6. transform: rotate(360deg);
  7. -webkit-transform: rotate(360deg);
  8. background: url(../images/cartoon-avatar.jpg) center no-repeat;
  9. background-size: 100% 100%;
  10. }
  11. }
  12. .avatar {
  13. width: 150px;
  14. height: 150px;
  15. border-radius: 95px;
  16. border: 5px solid $light-blue;
  17. background: url(../images/cartoon-avatar.jpg) center no-repeat;
  18. background-size: 80% 80%;
  19. &:hover {
  20. animation: rotateAvatar 1s ease;
  21. -webkit-animation: rotateAvatar 1s ease; /* Safari and Chrome */
  22. animation-fill-mode: forwards;
  23. cursor: pointer;
  24. }
  25. }
  26. /**
  27. * Images in post
  28. */
  29. .post-content img {
  30. margin-left: -2em;
  31. clear: both;
  32. display: block;
  33. margin: auto;
  34. border: 0.2em solid $light-blue;
  35. @include border-radius(0.5em);
  36. }
  37. /**
  38. * Images in projects
  39. */
  40. .vertical-timeline-block img {
  41. max-width: 100%;
  42. border: 0.2em solid $light-blue;
  43. @include border-radius(0.5em);
  44. }
  45. /**
  46. * Animations for SVG
  47. */
  48. /*
  49. @keyframes waveHand{
  50. 0% {
  51. transform: rotate(-15deg);
  52. }
  53. 50% {
  54. transform: rotate(15deg);
  55. }
  56. 100% {
  57. transform: rotate(-15deg);
  58. }
  59. }
  60. @-webkit-keyframes waveHand{
  61. 0% {
  62. -webkit-transform: rotate(-15deg);
  63. }
  64. 50% {
  65. -webkit-transform: rotate(15deg);
  66. }
  67. 100% {
  68. -webkit-transform: rotate(-15deg);
  69. }
  70. }
  71. #bear-paw {
  72. animation-name: waveHand;
  73. animation-duration: 3s;
  74. animation-iteration-count: infinite;
  75. -webkit-animation-name: waveHand;
  76. -webkit-animation-duration: 3s;
  77. -webkit-animation-iteration-count: infinite;
  78. transform-origin: 340px 400px;
  79. -webkit-transform-origin: 340px 400px;
  80. }
  81. @keyframes rotateSun{
  82. 0% {
  83. transform: rotate(0deg);
  84. -webkit-transform: rotate(0deg);
  85. }
  86. 100% {
  87. transform: rotate(360deg);
  88. -webkit-transform: rotate(360deg);
  89. }
  90. }
  91. #sun {
  92. animation: rotateSun 3s linear infinite;
  93. -webkit-animation: rotateSun 3s linear infinite;
  94. transform-origin: 1400px 230px;
  95. -webkit-transform-origin: 1400px 230px;
  96. }
  97. @keyframes moveCloud{
  98. 0% {
  99. transform: translate(0px,0px);
  100. -webkit-transform: translate(0px,0px);
  101. }
  102. 50% {
  103. transform: translate(120px,0px);
  104. -webkit-transform: translate(120px,0px);
  105. }
  106. 100% {
  107. transform: translate(0px,0px);
  108. -webkit-transform: translate(0px,0px);
  109. }
  110. }
  111. #cloud {
  112. animation: moveCloud 3s linear infinite;
  113. -webkit-animation: moveCloud 3s linear infinite;
  114. transform-origin: 0px 0px;
  115. -webkit-transform-origin: 0px 0px;
  116. }
  117. */