-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Palaksharma23/gloweffect
Glow Effect In Two Modes
- Loading branch information
Showing
8 changed files
with
472 additions
and
3 deletions.
There are no files selected for viewing
Submodule Frontend-Animations
added at
029059
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
* | ||
{ | ||
|
||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family:Arial, Helvetica, sans-serif ; | ||
font-size: xx-large; | ||
} | ||
body { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
background: #1f242d; | ||
} | ||
ul { | ||
list-style: none; | ||
display: grid; | ||
grid-template-columns: repeat(2,1fr); | ||
border: 2px solid white; | ||
box-shadow: 0px 2px 23px -3px rgb(181, 229, 243); | ||
|
||
} | ||
ul li { | ||
margin: 1.5vw; | ||
border: 2px solid black; | ||
padding: 1vw; | ||
font-weight: bolder; | ||
font-size: smaller; | ||
|
||
} | ||
ul li input { | ||
visibility: hidden; | ||
display: none; | ||
opacity: 0; | ||
transition: 0.5s; | ||
} | ||
ul li:hover{ | ||
color: white; | ||
border-color: white; | ||
box-shadow: 0px 2px 23px -3px rgb(181, 229, 243), | ||
inset 1px 2px 23px -3px rgb(181, 229, 243); | ||
font-size: larger; | ||
} | ||
|
||
a { | ||
position: relative; | ||
display: inline-block; | ||
padding: 10px 20px; | ||
text-decoration: none; | ||
text-transform: uppercase; | ||
color: rgba(255, 255, 255,0.4); | ||
background: #262c37; | ||
letter-spacing: 3px; | ||
font-size: medium; | ||
transition: 0.5s; | ||
} | ||
a:hover { | ||
color: rgba(255, 255, 255,1); | ||
} | ||
a span { | ||
display: block; | ||
position: absolute; | ||
background: #2894ff; | ||
} | ||
|
||
a span:nth-child(1) | ||
{ | ||
left: 0; | ||
bottom: 0; | ||
width: 1px; | ||
height: 100%; | ||
transform: scaleY(0); | ||
transform-origin: top; | ||
transition: transform 0.5s; | ||
} | ||
a:hover span:nth-child(1) | ||
{ | ||
transform: scaleY(1); | ||
transform-origin: bottom; | ||
transition: transform 0.5s; | ||
} | ||
|
||
a span:nth-child(2) | ||
{ | ||
left: 0; | ||
bottom: 0; | ||
width: 100%; | ||
height: 1px; | ||
transform: scaleX(0); | ||
transform-origin: right; | ||
transition: transform 0.5s; | ||
} | ||
a:hover span:nth-child(2) | ||
{ | ||
transform: scaleX(1); | ||
transform-origin: left; | ||
transition: transform 0.5s; | ||
} | ||
|
||
a span:nth-child(3) | ||
{ | ||
right: 0; | ||
bottom: 0; | ||
width: 1px; | ||
height: 100%; | ||
transform: scaleY(0); | ||
transform-origin: top; | ||
transition: transform 0.5s; | ||
} | ||
a:hover span:nth-child(3) | ||
{ | ||
transform: scaleY(1); | ||
transform-origin: top; | ||
transition: transform 0.5s; | ||
transition-delay: 0.5s; | ||
} | ||
a span:nth-child(4) | ||
{ | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 1px; | ||
transform: scaleX(0); | ||
transform-origin: right; | ||
transition: transform 0.5s; | ||
transition-delay: 0.5s; | ||
} | ||
a:hover span:nth-child(4) | ||
{ | ||
transform: scaleX(1); | ||
transform-origin: left; | ||
transition: transform 0.5s; | ||
transition-delay: 0.5s; | ||
} | ||
|
||
.button { | ||
position: fixed; | ||
right: 10%; | ||
top: 10%; | ||
} | ||
footer { | ||
position: absolute; | ||
bottom: 2px; | ||
left: 2px; | ||
|
||
} | ||
.atag { | ||
font-size: 15px; | ||
background: none; | ||
position: relative; | ||
top: -10%; | ||
left: -11%; | ||
letter-spacing: normal; | ||
} | ||
p { | ||
font-size: 75%; | ||
color: white; | ||
} | ||
.date { | ||
font-size: 65%; | ||
color: white; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="index.css"> | ||
|
||
<title>Button Effect</title> | ||
</head> | ||
<body> | ||
<a href="light.html" class="button"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
Light Mode | ||
</a> | ||
<div> | ||
<div> | ||
<ul> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id="checkbox"> <ion-icon class="fa" name="home-outline"></ion-icon> | ||
|
||
</label> </li> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id=""> <ion-icon class="fa" name="settings-outline"></ion-icon> | ||
|
||
</label> </li> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id=""> <ion-icon class="fa" name="volume-medium-outline"></ion-icon> | ||
|
||
</label> </li> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id=""> <ion-icon class="fa" name="wifi-outline"></ion-icon> | ||
|
||
</label> </li> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id=""> <ion-icon class="fa" name="bluetooth-outline"></ion-icon> | ||
|
||
</label> </li> | ||
<li> <label> | ||
|
||
|
||
<input type="checkbox" name="" id=""> <ion-icon class="fa" name="moon-outline"></ion-icon></ion-icon> | ||
|
||
</label> </li> | ||
</ul> | ||
</div> | ||
</div> | ||
<footer> | ||
<div><p>Credit:- <a href="https://github.com/Palaksharma23" class="atag" >Palak Sharma</a></p></div> | ||
<div class="date">Date:- 07-09-2021</div> | ||
</footer> | ||
</body> | ||
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script> | ||
</html> |
Oops, something went wrong.