Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
5409b60c
Commit
5409b60c
authored
6 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
better footer animation
parent
715a45e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#419180
passed
6 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Footer.tsx
+3
-1
3 additions, 1 deletion
src/components/Footer.tsx
src/containers/App/App.css
+67
-3
67 additions, 3 deletions
src/containers/App/App.css
with
70 additions
and
4 deletions
src/components/Footer.tsx
+
3
−
1
View file @
5409b60c
...
...
@@ -9,7 +9,9 @@ export function Footer() {
<
footer
className
=
"pt-0 pb-1 footer py-5 mt-0 text-white"
>
{
/* <hr /> */
}
<
div
className
=
"wave-container bg-rice_yellow"
>
<
div
className
=
"wave"
></
div
>
<
div
className
=
"wave1"
></
div
>
<
div
className
=
"wave2"
></
div
>
<
div
className
=
"wave3"
></
div
>
</
div
>
{
/* The following MUST be on every page: license information and link to the repository on gitlab.igem.org */
}
<
div
className
=
"row bg-wine-red "
>
...
...
This diff is collapsed.
Click to expand it.
src/containers/App/App.css
+
67
−
3
View file @
5409b60c
...
...
@@ -494,7 +494,7 @@ footer a:hover {
overflow
:
hidden
;
}
.wave
{
.wave
1
{
position
:
absolute
;
bottom
:
-25px
;
left
:
0
;
...
...
@@ -503,10 +503,10 @@ footer a:hover {
background
:
linear-gradient
(
90deg
,
rgba
(
114
,
47
,
55
,
1
)
0%
,
rgba
(
114
,
47
,
55
,
0.4
)
100%
);
border-radius
:
100%
;
transform
:
rotate
(
180deg
);
animation
:
waveAnimation
10s
linear
infinite
;
animation
:
wave
1
Animation
10s
linear
infinite
;
}
@keyframes
waveAnimation
{
@keyframes
wave
1
Animation
{
0
%
{
transform
:
translateX
(
-100%
)
rotate
(
180deg
);
}
...
...
@@ -515,6 +515,70 @@ footer a:hover {
}
}
.wave2
{
position
:
absolute
;
bottom
:
-25px
;
left
:
0
;
width
:
200%
;
/* Ensure the wave extends beyond the viewport */
height
:
50px
;
/* Height of the wave */
background
:
linear-gradient
(
90deg
,
rgba
(
114
,
47
,
55
,
1
)
0%
,
rgba
(
114
,
47
,
55
,
0.4
)
100%
);
border-radius
:
100%
;
transform
:
rotate
(
180deg
);
animation
:
wave2Animation
30s
linear
infinite
;
}
@keyframes
wave2Animation
{
0
%
{
transform
:
translateX
(
-100%
)
rotate
(
180deg
);
}
100
%
{
transform
:
translateX
(
100%
)
rotate
(
180deg
);
}
}
.wave3
{
position
:
absolute
;
bottom
:
-25px
;
left
:
0
;
width
:
200%
;
/* Ensure the wave extends beyond the viewport */
height
:
50px
;
/* Height of the wave */
background
:
linear-gradient
(
90deg
,
rgba
(
114
,
47
,
55
,
0.8
)
0%
,
rgba
(
114
,
47
,
55
,
0.4
)
100%
);
border-radius
:
100%
;
transform
:
rotate
(
180deg
);
animation
:
wave3Animation
15s
linear
infinite
;
}
@keyframes
wave3Animation
{
0
%
{
transform
:
translateX
(
50%
)
rotate
(
180deg
);
}
100
%
{
transform
:
translateX
(
-150%
)
rotate
(
180deg
);
}
}
.wave4
{
position
:
absolute
;
bottom
:
-25px
;
left
:
0
;
width
:
200%
;
/* Ensure the wave extends beyond the viewport */
height
:
50px
;
/* Height of the wave */
background
:
linear-gradient
(
90deg
,
rgba
(
114
,
47
,
55
,
0.5
)
0%
,
rgba
(
114
,
47
,
55
,
0.5
)
100%
);
border-radius
:
100%
;
transform
:
rotate
(
180deg
);
animation
:
wave4Animation
50s
linear
infinite
;
}
@keyframes
wave4Animation
{
0
%
{
transform
:
translateX
(
0%
)
rotate
(
180deg
);
}
100
%
{
transform
:
translateX
(
-100%
)
rotate
(
180deg
);
}
}
.center-block
{
height
:
40%
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment