mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Moving path draft
This commit is contained in:
+21
-15
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-sm-offset-0">
|
||||
<center>
|
||||
<svg width="60%" viewBox="-80 -20 260 140" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- style="border: 1px solid black;" > -->
|
||||
<svg width="60%" viewBox="-80 -20 260 181" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- style="border: 1px solid black;" > -->
|
||||
<defs>
|
||||
<style type="text/css">
|
||||
<![CDATA[
|
||||
@@ -11,8 +11,9 @@
|
||||
]]>
|
||||
</style>
|
||||
<filter id="svgfilter">
|
||||
<!-- Add blur -->
|
||||
<feGaussianBlur in="SourceGraphic" stdDeviation="2,2" />
|
||||
<feComponentTransfer>
|
||||
<feComponentTransfer> <!-- Make it darker -->
|
||||
<feFuncR type="linear" slope="0.5"/>
|
||||
<feFuncG type="linear" slope="0.5"/>
|
||||
<feFuncB type="linear" slope="0.5"/>
|
||||
@@ -22,9 +23,17 @@
|
||||
<g class="filtered">
|
||||
<image x="0" y="0" width="100" height="100" xlink:href="img/logo.svg"/>
|
||||
</g>
|
||||
<circle cx="50" cy="50" r="68" class="path" strokemiterlimit="10" stroke="black" stroke-width="4" fill="none" />
|
||||
</svg>
|
||||
<div class="page-header">Protected page</div>
|
||||
|
||||
<!--
|
||||
M is moveto
|
||||
|
||||
A is a general elliptical arc command.
|
||||
|
||||
L is lineto
|
||||
-->
|
||||
<path id="text_path" d="M-48,58 L-25,58 a68,68 0 0 1 150,0 L150,58 L150,150 L-48,150 L-48,58 L-25,58" fill="none" class="path" strokemiterlimit="10" stroke="black" stroke-width="4" />
|
||||
<text font-family="Verdana" x="-5" y="130" font-size="18">Protected page</text>
|
||||
</svg>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,22 +56,19 @@
|
||||
|
||||
<style type="text/css">
|
||||
.path {
|
||||
stroke-dasharray: 14.2,14.2;
|
||||
animation-name: ckw;
|
||||
stroke-dasharray: 14.4,14.4;
|
||||
animation-name: dash;
|
||||
/* Set animation to linear style (no acceleration) */
|
||||
animation-duration: 18s; /* Determines spinning speed */
|
||||
animation-duration: 30s; /* Determines spinning speed */
|
||||
animation-timing-function: linear; /* Play the animation with the same speed from beginning to end */
|
||||
animation-iteration-count: infinite; /* Never stop animation */
|
||||
transform-origin: 50% 50%; /* get circle rolling around itself */
|
||||
}
|
||||
|
||||
@keyframes ckw {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
@keyframes dash {
|
||||
to {
|
||||
stroke-dashoffset: 1000;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user