This media is not supported in your browser
VIEW IN TELEGRAM
π§ CSS TIP
Typing effect
Typing effect
<div class="wrapper">
<div class="typing-demo">CSS Tips for you!</div>
</div>
.typing-demo {
width: 17ch; /* Adjust based on the length of your text /
animation: typing 12s steps(17) infinite, blink 0.5s step-end infinite alternate;
white-space: nowrap;
overflow: hidden;
border-right: 3px solid;
font-family: monospace;
font-size: 2rem;
}
/ Typing and erasing animation /
@keyframes typing {
0% { width: 0; }
35% { width: 17ch; } / 4s for typing (1/3 of 12s) /
70% { width: 17ch; } / 5s pause (adding up to 8.4s) /
100% { width: 0; } / 3.6s for erasing (remaining time) /
}
/ Blinking cursor animation */
@keyframes blink {
50% { border-color: transparent; }
}β€2
This media is not supported in your browser
VIEW IN TELEGRAM
Do you know how to name React components using the Base + Composite + Suffix pattern?
You can use this pattern to create clear and consistent component names in your projects.
#React
You can use this pattern to create clear and consistent component names in your projects.
#React
β€1
This media is not supported in your browser
VIEW IN TELEGRAM
π REACT Tips
Rendering can be avoided by rethinking the component structure and using composition (see gif).
#React
Rendering can be avoided by rethinking the component structure and using composition (see gif).
#React
β€1
This media is not supported in your browser
VIEW IN TELEGRAM
π€ Use TypeScript utilities like Omit to create more reusable and adaptable components
β€1
This media is not supported in your browser
VIEW IN TELEGRAM
π§΅Creating an animated background in text
To create a beautiful background for text, use the background-image property, which takes a value in the form of a photo, or a link to any photo or video via url()
β’ color: transparent β makes the text transparent. This is necessary so that the text is visible only due to the background image.
β’ -moz-background-clip and -webkit-background-clip are special properties for other browsers that limit the display of the background image to the text area only.
To create a beautiful background for text, use the background-image property, which takes a value in the form of a photo, or a link to any photo or video via url()
β’ color: transparent β makes the text transparent. This is necessary so that the text is visible only due to the background image.
β’ -moz-background-clip and -webkit-background-clip are special properties for other browsers that limit the display of the background image to the text area only.
h1 {
font-family: sans-serif;
text-align: center;
font-size: 80px;
font-weight: 800;
text-transform: uppercase;
background-image: url(https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExYTlmN2h0MnhhNHFqcDFwaWYxMXd0NjlrZTE0NDBoY3N0M2hiNnY5ayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/XQsEy59pNgaVu6QlGi/giphy-downsized-large.gif);
background-size: cover;
color: transparent;
-moz-background-clip: text;
-webkit-background-clip: text;
}β€1
This media is not supported in your browser
VIEW IN TELEGRAM
π€― Do you know this GitHub hack?
1οΈβ£ Open any GitHub repository
2οΈβ£ Replace .com with .dev
3οΈβ£ View the repository code in a VS Code instance!
And yes, you can just press the "." button on your keyboard.
1οΈβ£ Open any GitHub repository
2οΈβ£ Replace .com with .dev
3οΈβ£ View the repository code in a VS Code instance!
And yes, you can just press the "." button on your keyboard.
β€2