diff --git a/css/buttons.css b/css/buttons.css index 693c8a3..2bf863b 100644 --- a/css/buttons.css +++ b/css/buttons.css @@ -126,4 +126,80 @@ /* James K Jose */ .jkj { background-color: #f79533; +} + + +/* Muskan */ + +.muskan { + color: #fff; + background: #111; + cursor: pointer; + position: relative; + z-index: 0; + border-radius: 10px; +} + +.muskan:before { + content: ""; + background: linear-gradient( + 45deg, + #ff0000, + #ff7300, + #fffb00, + #48ff00, + #00ffd5, + #002bff, + #7a00ff, + #ff00c8, + #ff0000 + ); + position: absolute; + top: -2px; + left: -2px; + background-size: 400%; + z-index: -1; + filter: blur(5px); + width: calc(100% + 5px); + height: calc(100% + 5px); + animation: glow 20s linear infinite; + opacity: 0; + transition: opacity 0.3s ease-in-out; + border-radius: 10px; +} + +@keyframes glow { + 0% { + background-position: 0 0; + } + 50% { + background-position: 400% 0; + } + 100% { + background-position: 0 0; + } +} + +.muskan:active { + color: #111; +} + +.muskan:active:after { + background: transparent; +} + +.muskan:hover:before { + opacity: 1; +} + +.muskan:after { + z-index: -1; + content: ""; + position: absolute; + width: 100%; + height: 100%; + background: #191919; + left: 0; + top: 0; + border-radius: 10px; } \ No newline at end of file diff --git a/css/cardcolor.css b/css/cardcolor.css index 3e0f393..71e4dc9 100644 --- a/css/cardcolor.css +++ b/css/cardcolor.css @@ -25,3 +25,7 @@ .roncy { background-color: #a287f4; } + +.muskan { + background-color: #161616; +} \ No newline at end of file diff --git a/css/textfield.css b/css/textfield.css index 6a07d59..e6c1157 100644 --- a/css/textfield.css +++ b/css/textfield.css @@ -53,4 +53,60 @@ font-size: 14px; top: -24px; color: #00dd22; -} /* Tonal Mathew : end */ \ No newline at end of file +} /* Tonal Mathew : end */ + + +/* Muskan */ +.form-muskan { + margin: 100px; +} + +.input-field-muskan { + position: relative; + width: 250px; + height: 44px; + line-height: 44px; +} + +.label-muskan { + position: absolute; + top: 0; + left: 0; + cursor: text; + width: 100%; + color: #161616; + transition: 0.2s all; +} + +.input-muskan { + width: 100%; + border: 0; + outline: 0; + padding: 0.5rem; + border-bottom: 3px solid #161616; + box-shadow: none; + color: #161616; +} + +.input-muskan:invalid { + outline: 0; +} + +.input-muskan:required { + color: #00c8d6; +} + +.input-muskan:focus, +.input-muskan:valid { + border-color: #00c8d6; + border: 2px solid #00c8d6; + border-radius: 13px; +} + +.input-muskan:focus~label, +.input-muskan:valid~label { + font-size: 16px; + top: -33px; + left: 5px; + color: #00c8d6; +} \ No newline at end of file diff --git a/pages/buttons.html b/pages/buttons.html index 9ab0bd2..23534e3 100644 --- a/pages/buttons.html +++ b/pages/buttons.html @@ -204,6 +204,41 @@

+ + +
+
+
+
+
+ Button +
+
+ +
+
+
+
+
+
+
+
+ Creator +
+
+
+

+ Name: + Muskan + +

+
+
+
+
+
+
+