Skip to content

Commit

Permalink
add animation to the header
Browse files Browse the repository at this point in the history
  • Loading branch information
bronnie313 committed Nov 18, 2023
1 parent 739c613 commit 1556d5d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
15 changes: 2 additions & 13 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,8 @@ ul {
position: absolute;
width: 30%;
z-index: -9999;
opacity: 0.1;
animation: fadeInOut 10s ease-in-out infinite, drift 8s linear infinite;
}

@keyframes fadeInOut {
0%,
100% {
opacity: 0.1;
}

50% {
opacity: 2;
}
opacity: 1;
animation: drift 8s linear infinite;
}

@keyframes drift {
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Header = () => {
<div className="d-flex justify-content-center flex-column align-items-center">
<h1 className="logo">
R
<Icon icon="ant-design:code-filled" color="#0db760" fontSize="3rem" />
<Icon icon="carbon:transform-binary" color="#0db760" fontSize="3rem" />
N
</h1>
</div>
Expand Down Expand Up @@ -71,7 +71,7 @@ const Header = () => {
<div className="d-flex justify-content-center flex-column align-items-center">
<h1 className="logo">
R
<Icon icon="ant-design:code-filled" color="#0db760" fontSize="4rem" />
<Icon icon="carbon:transform-binary" color="#0db760" fontSize="3.5rem" className="rotate-icon" />
N
</h1>
<p className="solutions"><em>Software Solutions</em></p>
Expand Down
14 changes: 14 additions & 0 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,17 @@
opacity: 1;
cursor: pointer;
}

.rotate-icon {
animation: rotateAnimation 4s linear infinite;
}

@keyframes rotateAnimation {
from {
transform: rotate(0deg);
}

to {
transform: rotate(360deg);
}
}

0 comments on commit 1556d5d

Please sign in to comment.