Skip to content

Commit

Permalink
feat: effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush-linux committed Aug 25, 2024
1 parent 4feafea commit 9a8ee5a
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
71 changes: 71 additions & 0 deletions frontend/css/effect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@

## typing effect

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Typewritter Effect</title>
<!--Google Fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Cutive+Mono&display=swap"
rel="stylesheet"
/>
<style>
body {
width: 100%;
height: 100vh;
margin: 0;
padding: 0;
background: black;
display: flex;
align-items: center;
justify-content: center;
}
.type {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.type span {
font-size: 60px;
color: white;
font-family: "Cutive Mono";
height: 60px;
border-right: 1mm solid white;
letter-spacing: 5px;
animation: typing 1s steps(13, end), blink 1s step-end infinite;
overflow: hidden;
white-space: nowrap;
}
@keyframes typing {
from {
width: 0;
}
to {
width: 100%;
}
}
@keyframes blink {
0%,
100% {
border-color: transparent;
}
50% {
border-color: white;
}
}
</style>
</head>
<body>
<div class="type">
<span>Typing Effect</span>
</div>
</body>
</html>
```
7 changes: 6 additions & 1 deletion frontend/css.md → frontend/css/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

- Position
- @LunDevCode
- Scroll, Font-Size
- Scroll,
- Font Responsive / Font-Size
- Animation : css, tailwind
- Image
- Bg
- Color
- SVG

```
.div
Expand Down

0 comments on commit 9a8ee5a

Please sign in to comment.