aboutsummaryrefslogtreecommitdiff
path: root/public/css/demos/hover.css
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-11-06 18:24:26 -0800
committerFuwn <[email protected]>2020-11-06 18:24:26 -0800
commit9cdce4254700691301608c6f1d3081950023cc4f (patch)
tree9d24529acc19b354f80cb2d610aa1e7686f4d530 /public/css/demos/hover.css
downloadblog-9cdce4254700691301608c6f1d3081950023cc4f.tar.xz
blog-9cdce4254700691301608c6f1d3081950023cc4f.zip
repo: initial :star:
Diffstat (limited to 'public/css/demos/hover.css')
-rw-r--r--public/css/demos/hover.css120
1 files changed, 120 insertions, 0 deletions
diff --git a/public/css/demos/hover.css b/public/css/demos/hover.css
new file mode 100644
index 0000000..23592da
--- /dev/null
+++ b/public/css/demos/hover.css
@@ -0,0 +1,120 @@
+.hover-a11y .row {
+ background-color: #004a93;
+}
+
+.hover-a11y .button {
+ color: #ffffff;
+ padding: 15px 25px;
+ text-align: center;
+}
+
+.hover-a11y .mouse-pointer {
+ animation: mousepos 6s ease-in-out 0s infinite;
+ -webkit-animation: mousepos 6s ease-in-out 0s infinite;
+ -moz-animation: mousepos 6s ease-in-out 0s infinite;
+ -o-animation: mousepos 6s ease-in-out 0s infinite;
+}
+
+.hover-a11y:not(.no-active) .button.active {
+ color: #aabbdd;
+}
+
+.hover-a11y.with-underline:not(.no-active) .button.active {
+ text-decoration: underline;
+}
+
+@-webkit-keyframes mousepos {
+ 0% {
+ -webkit-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 15% {
+ -webkit-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 20% {
+ -webkit-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 40% {
+ -webkit-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 45% {
+ -webkit-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 80% {
+ -webkit-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 100% {
+ -webkit-transform: translateX(30px) rotateZ(-20deg);
+ }
+}
+
+@-moz-keyframes mousepos {
+ 0% {
+ -moz-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 15% {
+ -moz-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 20% {
+ -moz-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 40% {
+ -moz-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 45% {
+ -moz-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 80% {
+ -moz-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 100% {
+ -moz-transform: translateX(30px) rotateZ(-20deg);
+ }
+}
+
+@-o-keyframes mousepos {
+ 0% {
+ -o-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 15% {
+ -o-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 20% {
+ -o-transform: translateX(100px) rotateZ(-20deg);
+ }
+ 40% {
+ -o-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 45% {
+ -o-transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 80% {
+ -o-transform: translateX(30px) rotateZ(-20deg);
+ }
+ 100% {
+ -o-transform: translateX(30px) rotateZ(-20deg);
+ }
+}
+
+@keyframes mousepos {
+ 0% {
+ transform: translateX(30px) rotateZ(-20deg);
+ }
+ 15% {
+ transform: translateX(100px) rotateZ(-20deg);
+ }
+ 20% {
+ transform: translateX(100px) rotateZ(-20deg);
+ }
+ 40% {
+ transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 45% {
+ transform: translateX(300px) rotateZ(-20deg) translateY(10px);
+ }
+ 80% {
+ transform: translateX(30px) rotateZ(-20deg);
+ }
+ 100% {
+ transform: translateX(30px) rotateZ(-20deg);
+ }
+}