aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/components/Marquees/Marquee.module.css
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2021-07-02 11:19:25 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2021-07-02 11:19:25 +0300
commitb6beb5f02e8c291f2b5f2bc7d0c15d0955336c32 (patch)
treee51abdbbb9b932b51dcc4fa0b242b32881a79c39 /frontend/components/Marquees/Marquee.module.css
parentf1b8e3cb04e9f274e8008881bdc2edc910123046 (diff)
Implement research papers
Diffstat (limited to 'frontend/components/Marquees/Marquee.module.css')
-rw-r--r--frontend/components/Marquees/Marquee.module.css38
1 files changed, 38 insertions, 0 deletions
diff --git a/frontend/components/Marquees/Marquee.module.css b/frontend/components/Marquees/Marquee.module.css
new file mode 100644
index 0000000..0fb8ece
--- /dev/null
+++ b/frontend/components/Marquees/Marquee.module.css
@@ -0,0 +1,38 @@
+.marqueeContainer {
+ height: 100vh;
+ overflow: hidden;
+ position: relative;
+ background: #fefefe;
+ color: #333;
+ z-index: 10;
+}
+
+.marquee {
+ position: absolute;
+ width: 100%;
+ height: 50px;
+ margin: 0;
+ line-height: 50px;
+ text-align: center;
+ transform: translateX(100%);
+ animation: scroll-left 10s linear infinite;
+ text-decoration: underline;
+}
+
+@keyframes scroll-left {
+ 0% {
+ transform: translateX(100%);
+ }
+ 100% {
+ transform: translateX(-100%);
+ }
+}
+
+@keyframes scroll-right {
+ 0% {
+ transform: translateX(-100%);
+ }
+ 100% {
+ transform: translateX(100%);
+ }
+}