_banner.scss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. .banner-one {
  2. position: relative;
  3. background-image: url(../images/background/banner-bg-1-1.png);
  4. background-repeat: no-repeat;
  5. background-size: cover;
  6. background-position: top center;
  7. .container {
  8. padding-top: 350px;
  9. padding-bottom: 230px;
  10. position: relative;
  11. }
  12. &__title {
  13. margin: 0;
  14. color: $thm-black;
  15. font-weight: 300;
  16. font-size: 90px;
  17. line-height: 1em;
  18. letter-spacing: -.06em;
  19. span {
  20. font-weight: 500;
  21. }
  22. }
  23. &__text {
  24. margin: 0;
  25. font-size: 20px;
  26. line-height: 36px;
  27. color: #74727a;
  28. margin-top: 25px;
  29. margin-bottom: 40px;
  30. }
  31. &__btn {
  32. padding: 18px 55px;
  33. }
  34. &__moc {
  35. position: absolute;
  36. bottom: 7%;
  37. right: -30px;
  38. &:before {
  39. content: '';
  40. width: 639px;
  41. height: 639px;
  42. background-image: linear-gradient(40deg, rgb(255, 67, 192) 0%, rgb(255, 169, 92) 100%);
  43. box-shadow: 0px 20px 60px 0px rgba(244, 151, 190, 0.8);
  44. border-radius: 50%;
  45. position: absolute;
  46. top: -14%;
  47. left: -24%;
  48. // transform: translateX(-50%) translateY(-15%);
  49. transform-origin: center bottom;
  50. animation-fill-mode: both;
  51. animation-name: bounce;
  52. animation-timing-function: ease-out;
  53. animation-duration: 5s;
  54. animation-iteration-count: infinite;
  55. }
  56. img {
  57. position: relative;
  58. animation: featureImgBounce 5s ease-in-out 0s infinite alternate;
  59. }
  60. }
  61. }
  62. [class*=banner-one__shape-] {
  63. position: absolute;
  64. border-radius: 50%;
  65. animation-name: bubbleMover;
  66. animation-timing-function: linear;
  67. animation-iteration-count: infinite;
  68. }
  69. .banner-one__shape-1 {
  70. background-image: linear-gradient(40deg, rgb(13, 184, 255) 0%, rgb(243, 50, 255) 100%);
  71. box-shadow: 0px 20px 60px 0px rgba(141, 142, 255, 0.8);
  72. width: 143px;
  73. height: 143px;
  74. top: 5%;
  75. left: 3%;
  76. animation-duration: 8s;
  77. perspective: 150px;
  78. }
  79. .banner-one__shape-2 {
  80. background-image: linear-gradient(40deg, rgb(57, 174, 255) 0%, rgb(60, 255, 83) 100%);
  81. box-shadow: 0px 20px 40px 0px rgba(58, 212, 173, 0.8);
  82. width: 85px;
  83. height: 85px;
  84. top: 12%;
  85. left: 37%;
  86. animation-duration: 10s;
  87. perspective: 85px;
  88. }
  89. .banner-one__shape-3 {
  90. background-image: linear-gradient(40deg, rgb(255, 67, 192) 0%, rgb(255, 169, 92) 100%);
  91. box-shadow: 0px 20px 40px 0px rgba(255, 118, 142, 0.8);
  92. width: 85px;
  93. height: 85px;
  94. bottom: 12%;
  95. left: 6%;
  96. animation-duration: 7s;
  97. perspective: 85px;
  98. }
  99. .banner-one__shape-4 {
  100. background-image: linear-gradient(40deg, rgb(255, 112, 62) 0%, rgb(255, 236, 78) 100%);
  101. box-shadow: 0px 20px 40px 0px rgba(255, 178, 71, 0.8);
  102. width: 85px;
  103. height: 85px;
  104. top: 20%;
  105. right: 4%;
  106. animation-duration: 12s;
  107. perspective: 85px;
  108. }
  109. @keyframes bubbleMover {
  110. 0% {
  111. transform: translateY(0px) translateX(0) rotate(0);
  112. }
  113. 30% {
  114. transform: translateY(30px) translateX(50px) rotate(15deg);
  115. transform-origin: center center;
  116. }
  117. 50% {
  118. transform: translateY(50px) translateX(100px) rotate(45deg);
  119. transform-origin: right bottom;
  120. }
  121. 80% {
  122. transform: translateY(30px) translateX(50px) rotate(15deg);
  123. transform-origin: left top;
  124. }
  125. 100% {
  126. transform: translateY(0px) translateX(0) rotate(0);
  127. transform-origin: center center;
  128. }
  129. }
  130. .banner-two {
  131. position: relative;
  132. background-color: $thm-black;
  133. background-image: url(../images/background/banner-2-bg.jpg);
  134. background-repeat: no-repeat;
  135. background-size: cover;
  136. background-position: top center;
  137. margin-bottom: 120px;
  138. .container {
  139. padding-top: 260px;
  140. padding-bottom: 120px;
  141. position: relative;
  142. }
  143. &__title {
  144. margin: 0;
  145. color: #fff;
  146. font-weight: 300;
  147. font-size: 90px;
  148. line-height: 1em;
  149. letter-spacing: -.06em;
  150. span {
  151. font-weight: 500;
  152. }
  153. }
  154. &__text {
  155. margin: 0;
  156. font-size: 20px;
  157. line-height: 36px;
  158. color: rgba(#fff, .7);
  159. margin-top: 25px;
  160. margin-bottom: 40px;
  161. }
  162. &__btn {
  163. color: #fff;
  164. background-image: none;
  165. border-radius: 5px;
  166. overflow: hidden;
  167. padding: 16px 55px;
  168. &:before {
  169. top: 0;
  170. bottom: 0;
  171. left: 0;
  172. right: 0;
  173. background-color: transparent;
  174. border: 2px solid;
  175. border-image: linear-gradient(90deg, rgb(255, 78, 181) 0%, rgb(255, 160, 101) 100%);
  176. border-image-slice: 1;
  177. }
  178. &:after {
  179. content: '';
  180. position: absolute;
  181. top: 0;
  182. bottom: 0;
  183. left: 0;
  184. right: 0;
  185. background-image: linear-gradient(90deg, rgb(255, 78, 181) 0%, rgb(255, 160, 101) 100%);
  186. border-radius: 5px;
  187. opacity: 0;
  188. transition: all .4s ease;
  189. z-index: 0;
  190. }
  191. span {
  192. z-index: 2;
  193. }
  194. &:hover {
  195. &:before {
  196. transform: scaleX(1);
  197. }
  198. &:after {
  199. opacity: 1;
  200. }
  201. }
  202. }
  203. &__moc {
  204. position: absolute;
  205. bottom: 0;
  206. right: 0px;
  207. img {
  208. position: relative;
  209. }
  210. }
  211. }
  212. [class*=banner-two__shape-] {
  213. position: absolute;
  214. border-radius: 50%;
  215. filter: blur(5px);
  216. animation-name: bubbleMover;
  217. animation-timing-function: linear;
  218. animation-iteration-count: infinite;
  219. }
  220. .banner-two__shape-1 {
  221. background-image: linear-gradient(40deg, rgb(13, 184, 255) 0%, rgb(243, 50, 255) 100%);
  222. width: 143px;
  223. height: 143px;
  224. top: 5%;
  225. left: 3%;
  226. animation-duration: 8s;
  227. perspective: 150px;
  228. }
  229. .banner-two__shape-2 {
  230. background-image: linear-gradient(40deg, rgb(57, 174, 255) 0%, rgb(60, 255, 83) 100%);
  231. width: 85px;
  232. height: 85px;
  233. top: 12%;
  234. left: 37%;
  235. animation-duration: 10s;
  236. perspective: 85px;
  237. }
  238. .banner-two__shape-3 {
  239. background-image: linear-gradient(40deg, rgb(255, 67, 192) 0%, rgb(255, 169, 92) 100%);
  240. width: 85px;
  241. height: 85px;
  242. bottom: 12%;
  243. left: 6%;
  244. animation-duration: 7s;
  245. perspective: 85px;
  246. }
  247. .banner-two__shape-4 {
  248. background-image: linear-gradient(40deg, rgb(255, 112, 62) 0%, rgb(255, 236, 78) 100%);
  249. width: 85px;
  250. height: 85px;
  251. top: 20%;
  252. right: 4%;
  253. animation-duration: 12s;
  254. perspective: 85px;
  255. }