Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change button using css animation and make it aesthetic #530

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions example-multipleServers-pretty.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
body{
text-align:center;
font-family:"Roboto",sans-serif;

}
h1{
color:#404040;
Expand Down Expand Up @@ -149,10 +150,12 @@
height:9em;
position:relative;
box-sizing:border-box;
border: 2px solid black;
}
div.testName{
position:absolute;
top:0.1em; left:0;
top:0.4em; left:0;

width:100%;
font-size:1.4em;
z-index:9;
Expand All @@ -173,6 +176,11 @@
#pingText,#jitText{
color:#AA6060;
}
#ipArea {
position: relative;
top:1em

}
div.meterText:empty:before{
color:#505050 !important;
content:"0.00";
Expand Down Expand Up @@ -232,8 +240,8 @@ <h1>LibreSpeed Example</h1>
<div class="unit">ms</div>
</div>
</div>
<div id="ipArea">
IP Address: <span id="ip"></span>
<div id="ipArea"><h4>IP Address:</h4>
<span id="ip"></span>
</div>
</div>
<a href="https://github.com/librespeed/speedtest">Source code</a>
Expand Down
50 changes: 43 additions & 7 deletions example-singleServer-customSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,22 @@
#startStopBtn{
display:inline-block;
margin:0 auto;
color:#6060AA;
background-color:rgba(0,0,0,0);

background-color:rgba(87, 28, 28, 0);
border:0.15em solid #6060FF;
border-radius:0.3em;
transition:all 0.3s;

box-sizing:border-box;
width:8em; height:3em;
line-height:2.7em;


cursor:pointer;
box-shadow: 0 0 0 rgba(0,0,0,0.1), inset 0 0 0 rgba(0,0,0,0.1);
}
#startStopBtn:hover{
box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1);

}



#startStopBtn.running{
background-color:#FF3030;
border-color:#FF6060;
Expand All @@ -88,6 +90,38 @@
#startStopBtn.running:before{
content:"Abort";
}
#startStopBtn:hover, .testArea:hover{
background-image: linear-gradient(
to right,
#E7484F,
#E7484F 16.65%,
#F68B1D 16.65%,
#F68B1D 33.3%,
#FCED00 33.3%,
#FCED00 49.95%,
#009E4F 49.95%,
#009E4F 66.6%,
#00AAC3 66.6%,
#00AAC3 83.25%,
#732982 83.25%,
#732982 100%,
#E7484F 100%



);
animation:slidebg 2s linear infinite;
}
@keyframes slidebg {
to {
background-position:20vw;
}
}





#test{
margin-top:2em;
margin-bottom:12em;
Expand All @@ -98,6 +132,8 @@
height:9em;
position:relative;
box-sizing:border-box;
border: 3px solid black;

}
div.testName{
position:absolute;
Expand Down
27 changes: 27 additions & 0 deletions example-singleServer-gauges.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,33 @@
cursor:pointer;
box-shadow: 0 0 0 rgba(0,0,0,0.1), inset 0 0 0 rgba(0,0,0,0.1);
}
#startStopBtn:hover{
background-image: linear-gradient(
to right,
#E7484F,
#E7484F 16.65%,
#F68B1D 16.65%,
#F68B1D 33.3%,
#FCED00 33.3%,
#FCED00 49.95%,
#009E4F 49.95%,
#009E4F 66.6%,
#00AAC3 66.6%,
#00AAC3 83.25%,
#732982 83.25%,
#732982 100%,
#E7484F 100%



);
animation:slidebg 2s linear infinite;
}
@keyframes slidebg {
to {
background-position:20vw;
}
}
#startStopBtn:hover{
box-shadow: 0 0 2em rgba(0,0,0,0.1), inset 0 0 1em rgba(0,0,0,0.1);
}
Expand Down
27 changes: 27 additions & 0 deletions example-singleServer-pretty.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,33 @@
#startStopBtn:before{
content:"Start";
}
#startStopBtn:hover, .testArea:hover{
background-image: linear-gradient(
to right,
#E7484F,
#E7484F 16.65%,
#F68B1D 16.65%,
#F68B1D 33.3%,
#FCED00 33.3%,
#FCED00 49.95%,
#009E4F 49.95%,
#009E4F 66.6%,
#00AAC3 66.6%,
#00AAC3 83.25%,
#732982 83.25%,
#732982 100%,
#E7484F 100%



);
animation:slidebg 2s linear infinite;
}
@keyframes slidebg {
to {
background-position:20vw;
}
}
#startStopBtn.running:before{
content:"Abort";
}
Expand Down
27 changes: 27 additions & 0 deletions example-singleServer-progressBar.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,33 @@
margin-top:2em;
margin-bottom:12em;
}
#startStopBtn:hover, .testArea:hover{
background-image: linear-gradient(
to right,
#E7484F,
#E7484F 16.65%,
#F68B1D 16.65%,
#F68B1D 33.3%,
#FCED00 33.3%,
#FCED00 49.95%,
#009E4F 49.95%,
#009E4F 66.6%,
#00AAC3 66.6%,
#00AAC3 83.25%,
#732982 83.25%,
#732982 100%,
#E7484F 100%



);
animation:slidebg 2s linear infinite;
}
@keyframes slidebg {
to {
background-position:20vw;
}
}
div.testArea{
display:inline-block;
width:14em;
Expand Down