Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.41 KB | None | 0 0
  1. .leftside, .rightside{
  2.   height: 50vh;
  3.   width:100%;
  4. }
  5.  
  6. @media screen and (min-width:750px)
  7. {
  8. .leftside, .rightside{
  9.  
  10.   height:100vh;
  11. }
  12.  
  13. }
  14.  
  15.  
  16.  
  17. .leftside{
  18. background-color: aquamarine;
  19.  
  20. }
  21.  
  22. .rightside{
  23.   background-color: whitesmoke;
  24.  
  25. }
  26.  
  27. /* slider box*/
  28. *{
  29.   box-sizing:border-box;
  30. }
  31.  
  32. body{
  33.  
  34. font-family:'montserrat', sans-serif;
  35. background:paleturquoise;
  36. display:flex;
  37. flex-direction:column;
  38. justify-content:center;
  39. align-items:center;
  40. height:100vh;
  41. margin:-20px 0 50px ;
  42.  
  43. }
  44.  
  45. h1{
  46.  
  47.   font-weight:bold;
  48.   margin:0;
  49. }
  50.  
  51. p{
  52. font-size:14px;
  53. font-weight: 100;
  54. line-height:20px;
  55. letter-spacing:0.5px;
  56. margin: 20px 0 30px;
  57.  
  58. }
  59.  
  60. span{
  61.   font-size:12px;
  62. }
  63.  
  64. a{
  65. color:#333;
  66. font-size:14px;
  67. text-decoration:none;
  68. margin:15px 0;
  69.  
  70. }
  71.  
  72. .container{
  73.  background: #fff;
  74.  border-radius: 10px;
  75.  box-shadow: 0 14px 28px rgba (0,0,0,0.25) , 0 10px 10px rgba(0,0,0,0.22);
  76.  position: relative;
  77.  overflow: hidden;
  78.  width:768px;
  79.  max-width:100%;
  80.  min-height:480px;
  81.  
  82. }
  83.  
  84. .form-container form{
  85.   background:#fff;
  86.   display:flex;
  87.   flex-direction:column;
  88.   padding: 0 50px;
  89.   height:100%;
  90.   justify-content:center;
  91.   align-items: center;
  92.   text-align:center;
  93.  
  94. }
  95.  
  96.  
  97.  
  98. .form-container input{
  99.  background:#eee;
  100.  border:none;
  101.  padding: 12px 15px;
  102.  margin: 8px 0;
  103.  width:100%;
  104.  
  105. }
  106.  
  107. button{
  108.  border-radius: 20px;
  109.  border:1px solid #ff4b2b;
  110.  background:#ff4b2b;
  111.  color:#fff;
  112.  font-size:12px;
  113.  font-weight:bold;
  114.  padding: 12px 45px;
  115. letter-spacing: 1px;
  116. text-transform:uppercase;
  117. transition: transform 80ms ease-in;
  118.  
  119. }
  120.  
  121. button:active{
  122. transform:scale(0.95);
  123.  
  124. }
  125.  
  126. button:focus{
  127. outline:none;
  128. }
  129.  
  130. button.ghost{
  131. background:transparent;
  132. border-color:#fff;
  133. }
  134.  
  135. .form-container{
  136.  position:absolute;
  137.  top:0;
  138.  height:100%;
  139.  transition: all 0.6s ease-in-out;
  140.  
  141. }
  142.  
  143. .sign-in-container{
  144. left:0;
  145. width:50%;
  146. z-index: 2;
  147.  
  148. }
  149.  
  150. .sign-up-container{
  151.   left:0;
  152.   width:50%;
  153.   opacity:0;
  154.   z-index: 2;
  155.  
  156. }
  157.  
  158. .overlay-container{
  159. position:absolute;
  160. top:0;
  161. left:50%;
  162. width:50%;
  163. height:100%;
  164. overflow:hidden;
  165. transition: transform 0.6s ease-in-out;
  166. z-index:100;
  167.  
  168. }
  169.  
  170. .overlay{
  171. background: #ff416c;
  172. background: linear-gradient(to right, #ff4b2b,#ff416c) no repeat 0 0 /cover;
  173. color:#fff;
  174. position: relative;
  175. left: -100%;
  176. height:100%;
  177. width:200%;
  178. transform: translateX(0);
  179. transition: transform 0.6s ease-in-out;
  180. }
  181.  
  182. .overlay-panel{
  183. position:absolute;
  184. top:0;
  185. display:flex;
  186. flex-direction: column;
  187. justify-content: center;
  188. align-items: center;
  189. padding: 0 40px;
  190. height: 100%;
  191. width:50%;
  192. text-align:center;
  193. transform: translateX(0);
  194. transition:transform 0.6s ease-in-out;
  195. }
  196.  
  197. .overlay-right {
  198. right: 0;
  199. transform: translatex(0);
  200. }
  201.  
  202. .overlay-left {
  203.   transform: translatex(-20%);
  204.  }
  205. /*Animation*/
  206.  
  207. /* Move Sign In to the right side*/
  208. .container.right-panel-active.sign-in-container{
  209.   transform:translateX(100%);
  210. }
  211. /* Move overlay to the left side*/
  212. .container.right-panel-active.overlay-container{
  213.   transform:translateX(-100%);
  214. }
  215.  
  216. /*Overlap Sign Up Over Sign In*/
  217. .container.right-panel-active.overlay-container .sign-up-container{
  218.  
  219.   transform:translateX(100%);
  220.   opacity:1;
  221.   Z-index:5;
  222. }
  223.  
  224. /*Move Overlap to back*/
  225. .container.right-panel-active.overlay{
  226.  transform:translateX(50%);
  227. }
  228.  
  229. .container.right-panel-active.overlay-left{
  230.   transform:translateX(0);
  231.  }
  232.  
  233.  .container.right-panel-active.overlay-right{
  234.   transform:translateX(20%);
  235.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement