Shiny text:
body {
background: black;
font-family: 'Poppins', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
h1.shine {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #ffffff;
background: linear-gradient(to right, #4d4d4d 0, white 10%, #4d4d4d 20%);
background-position: 0;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: shine 3s infinite linear;
animation-fill-mode: forwards;
font-weight: 600;
font-size: 48px; /* Adjust size for header */
text-align: center;
white-space: nowrap;
}
@keyframes shine {
0% {
background-position: 0;
}
60% {
background-position: 180px;
}
100% {
background-position: 180px;
}
}π¨ New HTML Code: Unlock the Power of HTML!
π» Todayβs Topic: Create a Stylish Card with Hover Effects!
π₯ Try this code and add your own styles to make it unique!
π Donβt forget to subscribe to @Html_codee for more creative HTML tutorials. Share this post with your friends and level up your coding skills!
#HTML #CSS #WebDevelopment
π» Todayβs Topic: Create a Stylish Card with Hover Effects!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hover Card</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #74ebd5, #9face6);
font-family: Arial, sans-serif;
}
.card {
background: #ffffff;
width: 300px;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.card img {
width: 100px;
height: 100px;
border-radius: 50%;
margin-bottom: 10px;
}
.card h3 {
margin: 10px 0;
font-size: 22px;
color: #333;
}
.card p {
font-size: 16px;
color: #777;
}
</style>
</head>
<body>
<div class="card">
<img src="https://via.placeholder.com/100" alt="Avatar">
<h3>3legsbird</h3>
<p>Web Developer & Designer</p>
</div>
</body>
</html>
π₯ Try this code and add your own styles to make it unique!
π Donβt forget to subscribe to @Html_codee for more creative HTML tutorials. Share this post with your friends and level up your coding skills!
#HTML #CSS #WebDevelopment
πΌ Career Spotlight: Graphic Designers, Web Developers, and App Developers
π¨ Graphic Designers
What They Do: Create captivating visuals for branding, marketing, websites, and social media.
Average Salary:
Freelancers: $20β$50/hour (or more, based on expertise).
Full-time: $40,000β$70,000/year (varies by location).
π‘ Skills Required: Adobe Photoshop, Illustrator, Figma, creativity, and attention to detail.
π» Web Developers
What They Do: Design, build, and maintain websites using HTML, CSS, JavaScript, and frameworks like React or WordPress.
Average Salary:
Freelancers: $25β$100/hour (based on project complexity).
Full-time: $50,000β$90,000/year.
π‘ Skills Required: Front-end and/or back-end coding, problem-solving, and UI/UX design principles.
π± App Developers
What They Do: Build mobile applications for Android, iOS, or cross-platforms using technologies like Kotlin, Swift, or Flutter.
Average Salary:
Freelancers: $30β$150/hour (depending on project scope).
Full-time: $70,000β$120,000/year.
π‘ Skills Required: Mobile coding, debugging, API integration, and app store deployment.
π Which career excites you the most? Let us know in the comments!
β¨ Follow us for more insights on tech careers, tips, and earning potential.
#GraphicDesign #WebDevelopment #AppDevelopment #FreelanceJobs #CareerInsights
@Html_codee
π¨ Graphic Designers
What They Do: Create captivating visuals for branding, marketing, websites, and social media.
Average Salary:
Freelancers: $20β$50/hour (or more, based on expertise).
Full-time: $40,000β$70,000/year (varies by location).
π‘ Skills Required: Adobe Photoshop, Illustrator, Figma, creativity, and attention to detail.
π» Web Developers
What They Do: Design, build, and maintain websites using HTML, CSS, JavaScript, and frameworks like React or WordPress.
Average Salary:
Freelancers: $25β$100/hour (based on project complexity).
Full-time: $50,000β$90,000/year.
π‘ Skills Required: Front-end and/or back-end coding, problem-solving, and UI/UX design principles.
π± App Developers
What They Do: Build mobile applications for Android, iOS, or cross-platforms using technologies like Kotlin, Swift, or Flutter.
Average Salary:
Freelancers: $30β$150/hour (depending on project scope).
Full-time: $70,000β$120,000/year.
π‘ Skills Required: Mobile coding, debugging, API integration, and app store deployment.
π Which career excites you the most? Let us know in the comments!
β¨ Follow us for more insights on tech careers, tips, and earning potential.
#GraphicDesign #WebDevelopment #AppDevelopment #FreelanceJobs #CareerInsights
@Html_codee
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Creating a glitch effect with CSS can add an intriguing visual to your web design. Below is a step-by-step tutorial on how to achieve a simple glitch effect on text elements using CSS animations.
π Step 1: Setting Up the HTML Structure
Start by creating a basic HTML structure for your text. You can use a
π Step 2: Defining CSS Styles
Now, letβs create the CSS to style the text and apply the glitch effect. You can start by creating a
π Step 3: Explanation of the Code
1. HTML Structure:
β¦ We set up a
2. CSS Styles:
β¦ The
β¦ The
β¦ The
3. Animations:
β¦ The
π Step 4: View the Result
Once youβve added the HTML and CSS, open the HTML file in a web browser. You should see the word "GLITCH" flickering with a vibrant color, creating a glitch effect. Adjust the colors, sizes, and animations as you like to customize the effect further!
π Conclusion
This guide provides a simple way to create a glitch text effect using just HTML and CSS. You can expand upon this basic example by adding hover effects, changing colors, or layering different text elements for a more complex effect. Happy coding!
@Html_codee
π Step 1: Setting Up the HTML Structure
Start by creating a basic HTML structure for your text. You can use a
<div> to hold the text that will have the glitch effect.<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Glitch Effect</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="glitch" data-text="GLITCH">GLITCH</div>
</body>
</html>
π Step 2: Defining CSS Styles
Now, letβs create the CSS to style the text and apply the glitch effect. You can start by creating a
styles.css file.body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000;
margin: 0;
}
.glitch {
font-family: 'Courier New', Courier, monospace;
font-size: 100px;
color: white;
position: relative;
overflow: hidden;
letter-spacing: 0.05em;
}
.glitch:before,
.glitch:after {
content: attr(data-text);
position: absolute;
left: 0;
width: 100%;
color: #ff0080; /* Red color for glitch effect */
overflow: hidden;
clip: rect(0, 0, 100px, 0);
}
/* Animation */
.glitch:before {
animation: glitch-anim 1s infinite linear alternate-reverse;
}
.glitch:after {
animation: glitch-anim-2 1s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
0% {
clip: rect(42px, 9999px, 58px, 0);
transform: translate(0);
}
25% {
clip: rect(30px, 9999px, 40px, 0);
transform: translate(-5px, -5px);
}
50% {
clip: rect(10px, 9999px, 60px, 0);
transform: translate(5px, 5px);
}
75% {
clip: rect(20px, 9999px, 30px, 0);
transform: translate(-5px, 5px);
}
100% {
clip: rect(42px, 9999px, 58px, 0);
transform: translate(0);
}
}
@keyframes glitch-anim-2 {
0% {
clip: rect(10px, 9999px, 50px, 0);
transform: translate(0);
}
25% {
clip: rect(20px, 9999px, 30px, 0);
transform: translate(5px, -5px);
}
50% {
clip: rect(0px, 9999px, 50px, 0);
transform: translate(-5px, 5px);
}
75% {
clip: rect(30px, 9999px, 40px, 0);
transform: translate(5px, 5px);
}
100% {
clip: rect(10px, 9999px, 50px, 0);
transform: translate(0);
}
}π Step 3: Explanation of the Code
1. HTML Structure:
β¦ We set up a
<div> with the class glitch and a data-text attribute for the text content.2. CSS Styles:
β¦ The
body centers the text using Flexbox.β¦ The
glitch class sets the base styles for the text, including font, size, color, and positioning.β¦ The
:before and :after pseudo-elements are used to create two duplicates of the text, each of which will be animated to create the glitch effect.3. Animations:
β¦ The
@keyframes define the glitching movement and clipping effect. Each frame of the animation has different clipping rectangles and translations which create the illusion of a glitch.π Step 4: View the Result
Once youβve added the HTML and CSS, open the HTML file in a web browser. You should see the word "GLITCH" flickering with a vibrant color, creating a glitch effect. Adjust the colors, sizes, and animations as you like to customize the effect further!
π Conclusion
This guide provides a simple way to create a glitch text effect using just HTML and CSS. You can expand upon this basic example by adding hover effects, changing colors, or layering different text elements for a more complex effect. Happy coding!
@Html_codee
Taking a screenshot using HTML and JavaScript can be done using the
Here's how you can implement this:
π Step 1: Include
You can include the library from a CDN in your HTML file:
π Explanation
1. HTML Structure: We have a simple
2. html2canvas Integration: The
3. Touch Events: We listen for
4. Swipe Detection: We check if the fingers traveled a significant distance horizontally, and if they did, we call the
This example demonstrates how to take a screenshot programmatically using a three-finger gesture on touch devices. Make sure to test this on a real touch device, as desktop browsers may not fully support touch events.
@Html_codee
html2canvas library. This library allows you to render HTML elements onto a canvas and then export that canvas as an image. Additionally, handling screenshots with a three-finger swipe gesture can be accomplished using touch events.Here's how you can implement this:
π Step 1: Include
html2canvas in your projectYou can include the library from a CDN in your HTML file:
<!DOCTYPE html>
<html>
<head>
<title>Screenshot Example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
<style>
#screenshotArea {
border: 1px solid #000;
padding: 20px;
width: 300px;
height: 200px;
}
</style>
</head>
<body>
<div id="screenshotArea">
<h1>Hello World!</h1>
<p>This is a screenshot example.</p>
</div>
<script>
function takeScreenshot() {
html2canvas(document.querySelector("#screenshotArea")).then(canvas => {
// Create a link to download the image
const link = document.createElement('a');
link.href = canvas.toDataURL("image/png");
link.download = 'screenshot.png';
link.click();
});
}
let touchStartX = 0;
let touchStartY = 0;
document.addEventListener("touchstart", function(event) {
if (event.touches.length === 3) { // Check for three fingers
touchStartX = event.touches[0].clientX;
touchStartY = event.touches[0].clientY;
}
}, false);
document.addEventListener("touchend", function(event) {
if (event.changedTouches.length === 3) { // Check for three fingers
const touchEndX = event.changedTouches[0].clientX;
const touchEndY = event.changedTouches[0].clientY;
// Implementing a simple swipe detection logic
const swipeDistanceX = touchEndX - touchStartX;
const swipeDistanceY = touchEndY - touchStartY;
if (Math.abs(swipeDistanceX) > Math.abs(swipeDistanceY) && Math.abs(swipeDistanceX) > 100) {
// If the swipe is horizontal and significant
takeScreenshot();
}
}
}, false);
</script>
</body>
</html>
π Explanation
1. HTML Structure: We have a simple
<div> that we want to take as a screenshot.2. html2canvas Integration: The
html2canvas library is linked in the document, and we define a function takeScreenshot that captures the content of the screenshotArea div when invoked.3. Touch Events: We listen for
touchstart and touchend events to check if the user has performed a 3-finger touch gesture.4. Swipe Detection: We check if the fingers traveled a significant distance horizontally, and if they did, we call the
takeScreenshot function.This example demonstrates how to take a screenshot programmatically using a three-finger gesture on touch devices. Make sure to test this on a real touch device, as desktop browsers may not fully support touch events.
@Html_codee
π₯°65β€30π21π€©21π20π₯17
To create a cloud background using Vanta.js, you'll need to incorporate Vanta into your HTML project. Vanta.js is a lightweight library that allows for animated backgrounds and provides several preset effects, including a cloud-like animation.
Hereβs a step-by-step guide on how to achieve a cloud background effect:
π Step 1: Include Vanta.js in your project
You can include the Vanta.js library directly from a CDN. Here's how to set it up in your HTML file:
π Step 2: Customize the Vanta.js settings
In the JavaScript snippet, you can customize various parameters of the cloud background:
β¦
β¦
β¦
π Additional Notes
1. Performance: Vanta.js is optimized for performance, but keep an eye on how the animation affects the overall performance of your app, especially on mobile devices.
2. Responsiveness: The background is set to cover the full width and height of the viewport. Make sure other content adjusts accordingly.
3. Browser Compatibility: Ensure that you test your implementation across different browsers for consistency.
4. Vanta.js Documentation: You can refer to Vanta.js documentation for more options and configurations.
By following these steps, you should have a beautiful animated cloud background on your website!
Hereβs a step-by-step guide on how to achieve a cloud background effect:
π Step 1: Include Vanta.js in your project
You can include the Vanta.js library directly from a CDN. Here's how to set it up in your HTML file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cloud Background with Vanta.js</title>
<style>
body {
margin: 0;
overflow: hidden;
}
#vanta-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Ensures the background stays behind other content */
}
</style>
</head>
<body>
<div id="vanta-bg"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.rawgit.com/tengbao/vanta/v0.5.12/dist/vanta.clouds.min.js"></script>
<script>
VANTA.CLOUDS({
el: "#vanta-bg",
THREE: window.THREE,
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
skyColor: 0x3a3f47,
cloudColor: 0xffffff,
highFrequency: 5.00
});
</script>
</body>
</html>
π Step 2: Customize the Vanta.js settings
In the JavaScript snippet, you can customize various parameters of the cloud background:
β¦
skyColor: The background color of the sky.β¦
cloudColor: The color of the clouds.β¦
highFrequency: Controls the density of clouds.π Additional Notes
1. Performance: Vanta.js is optimized for performance, but keep an eye on how the animation affects the overall performance of your app, especially on mobile devices.
2. Responsiveness: The background is set to cover the full width and height of the viewport. Make sure other content adjusts accordingly.
3. Browser Compatibility: Ensure that you test your implementation across different browsers for consistency.
4. Vanta.js Documentation: You can refer to Vanta.js documentation for more options and configurations.
By following these steps, you should have a beautiful animated cloud background on your website!
Forwarded from AI Post β Artificial Intelligence
Please open Telegram to view this post
VIEW IN TELEGRAM
π2
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>
Contact Us
</title>
<script src="https://cdn.tailwindcss.com">
</script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet"/>
</head>
<body class="font-roboto bg-gray-100">
<header class="bg-blue-600 text-white p-4">
<div class="container mx-auto flex justify-between items-center">
<h1 class="text-2xl font-bold">
Contact Us
</h1>
<nav>
<ul class="flex space-x-4">
<li>
<a class="hover:underline" href="#">
Home
</a>
</li>
<li>
<a class="hover:underline" href="#">
About
</a>
</li>
<li>
<a class="hover:underline" href="#">
Services
</a>
</li>
<li>
<a class="hover:underline" href="#">
Contact
</a>
</li>
</ul>
</nav>
</div>
</header>
<main class="container mx-auto p-4">
<section class="bg-white p-6 rounded-lg shadow-lg">
<h2 class="text-2xl font-bold mb-4">
Get in Touch
</h2>
<form action="#" class="space-y-4" method="POST">
<div>
<label class="block text-sm font-medium text-gray-700" for="name">
Name
</label>
<input class="mt-1 block w-full p-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" id="name" name="name" type="text"/>
</div>
<div>
<label class="block text-sm font-medium text-gray-700" for="email">
</label>
<input class="mt-1 block w-full p-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" id="email" name="email" type="email"/>
</div>
<div>
<label class="block text-sm font-medium text-gray-700" for="message">
Message
</label>
<textarea class="mt-1 block w-full p-2 border border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500" id="message" name="message" rows="4"></textarea>
</div>
<div>
<button class="w-full bg-blue-600 text-white p-2 rounded-md hover:bg-blue-700" type="submit">
Send Message
</button>
</div>
</form>
</section>
<section class="mt-8">
<h2 class="text-2xl font-bold mb-4">
Our Location
</h2>
<div class="bg-white p-6 rounded-lg shadow-lg">
<div class="flex flex-col md:flex-row">
<div class="md:w-1/2">
<img alt="Map showing the location of our office" class="rounded-lg" height="400" src="https://storage.googleapis.com/a1aa/image/ZXjQSOBx5wKEBBpXt3DdBN4FoOUVfz1aDkx0zggarGOaf16TA.jpg" width="600"/>
</div>
<div class="md:w-1/2 md:pl-6 mt-4 md:mt-0">
<h3 class="text-xl font-bold">
Office Address
</h3>
<p class="mt-2">
1234 Street Name, City, State, 12345
</p>
<p class="mt-2">
<i class="fas fa-phone-alt">
</i>
(123) 456-7890
</p>
<p class="mt-2">
<i class="fas fa-envelope">
</i>
contact@company.com
</p>
</div>
</div>
</div>
</section>
</main>
<footer class="bg-blue-600 text-white p-4 mt-8">
<div class="container mx-auto text-center">
<p>
Β© 2023 Company Name. All rights reserved.
</p>
</div>
</footer>
</body>
</html>
body { margin: 0; padding: 0; height: 100vh; background: #000000; overflow: hidden; } .snowflakes { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; z-index: 1000; } .snowflake { position: absolute; width: 10px; height: 10px; background: white; border-radius: 50%; opacity: 0.8; } @keyframes snowflakes-fall { 0% { top: -10%; } 100% { top: 100%; } } @keyframes snowflakes-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } } .snowflake:nth-child(1) { animation: snowflakes-fall 10s linear infinite, snowflakes-shake 3s ease-in-out infinite; } .snowflake:nth-child(2) { animation: snowflakes-fall 15s linear infinite, snowflakes-shake 4s ease-in-out infinite; } .snowflake:nth-child(3) { animation: snowflakes-fall 20s linear infinite, snowflakes-shake 5s ease-in-out infinite; } /* Add more snowflakes for a denser effect */ .snowflake:nth-child(4) { animation: snowflakes-fall 12s linear infinite, snowflakes-shake 3.5s ease-in-out infinite; } .snowflake:nth-child(5) { animation: snowflakes-fall 18s linear infinite, snowflakes-shake 4.5s ease-in-out infinite; }What does HTML stand for?
Anonymous Quiz
73%
Hyper Text Markup Language
27%
High Text Machine Language
0%
Hyperlink and Text Markup Language