Html codes
184 subscribers
111 photos
15 videos
226 files
197 links
👋 Welcome to Html Codee
🚀 Here you’ll find mini tools, code snippets, and web tricks to grow fast.
🧩 Built with HTML, PHP, and smart ideas.
💌 Support: support@bestpage.x10.mx
🏁 If you don't walk today, run tomorrow.
Download Telegram
🎯 Code Hack: Neon Text Effect

Give your website a retro-futuristic feel with this simple glowing neon text effect using only CSS:

<h1 class="neon-text">Neon Vibes</h1>

<style>
body {
background: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.neon-text {
font-size: 48px;
color: #fff;
text-shadow:
0 0 5px #0ff,
0 0 10px #0ff,
0 0 20px #0ff,
0 0 40px #0ff,
0 0 80px #0ff;
font-family: 'Courier New', monospace;
animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
opacity: 1;
}
20%, 24%, 55% {
opacity: 0.4;
}
}
</style>


🌟 Add a cyberpunk flair to headers, banners, or titles.

More daily UI tricks and CSS magic right here 👉 @Html_codee

#neon #css #html #frontend #design #webeffects
An ID SELECTOR in CSS file starts with
Anonymous Quiz
75%
Hashtag
25%
Period
0%
Semicolon
0%
Star
Html codes
Photo
CodePen Blog
Chris’ Corner: Modern CSS Features Coming Together

I like the term “content aware components” like Eric Bailey uses in the Piccalilli article Making content-aware components using CSS :has(), grid, and quantity queries. Does a card have a photo? Yes, do one thing, no, do another. That sort of thing. Eric has some good examples where a UI component has a bunch more “tags” than another, so the layout adjusts to accommodate them better. https://blog.codepen.io/wp-content/uploads/2025/06/Screenshot-2025-06-17-at-2.21.27 PM-960x1024.png Thanks to :has(), the idea of “quantity queries” (e.g. style an element if there are, say, 4 or more of an element) have gotten a lot easier. The way I figure it, we could do like: .card:has(.tag:nth-child(4)) {
/* apply styles to the card because there are at least 4 tags */
}

Admittedly, the logic gets a little bit more complicated if you want like “3 or less tags”, but that’s exactly what Eric covers in the article, linking up the original ideas and resources, so you’re in luck.

At CSS Day the other week, I listened to Ahmad Shadeed have a wonderful idea on stage. Imagine a layout with one item, you show it. Two items? Side by side? Three items? Maybe two on top and one on the bottom. Four? Two by Two. Five? Well! That’s getting to be a lot of items. We could break them into a carousel. All entirely in CSS. That’s wild. I’d love to build that one day. Maybe I’ll try to stream it one of these days. (Of course, as I write this Kevin Powell put out a video that verges on the idea, and it’s very clever.)

Speaking of Ahmad, he’s got a great article introducing the big improvements that the attr() function has gotten. I absolutely love how we can pluck attribute values out of HTML and actually have them be useful now. I think we’ll realize the power of that more and more. But it occurs to me here that it could factor into this quantity query situation. Say you trust your server to know and output stuff like this. So like: ... You can get your hands on 13, as an actual number not a string, in CSS now like: attr(data-cards type(<number), 2)
The number 2 above is a fallback. With a number like that, it makes me think that maybe-just-maybe, we could combine it with the newfangled if() commands in CSS (See Una’s great video) to write the same kind of “quantity query” logic.

Ya know how Sass has @mixin to repeat blocks of CSS? Native CSS doesn’t have that yet, but style queries are pretty close. I snagged this screenshot out of Kevin’s video (in CodePen, naturally): https://blog.codepen.io/wp-content/uploads/2025/06/Screenshot-2025-06-19-at-8.05.51 AM-1024x790.png See how he just flips on a --custom-property then the style query matches when that custom property is set and outputs a block of styles? That feels an awful lot like a mixin to me. Miriam has a nice homebase page for native mixins, which links to some very active discussion on it. At the pace CSS is moving I imagine we’ll have it before we know it. Just @applying a @mixin seems like a more straightforward approach than the style query approach, and more flexible as it’s likely they’ll take parameters, and possibly even slots. CSS carousels amount to a pretty hefty amount of CSS. Wouldn’t it be cool to make that into a hefty @mixin that takes parameters on what features you want? Ship it.

In other news, gap decorations are starting to be a thing and that’s wonderful. Hoping they’ll move right onto styling a grid area without needing an HTML element there, that would be just as wonderful. I’m still hesitant on making entire columns of article content into grids, but that’s a me-problem, I see others are coming around on the idea.
🌀 CSS Illusion: Hypnotic Spinner

Not your average loader — this CSS hypnotic animation is an eye-catcher you can use for loading states or just to impress your users!

<div class="hypno-loader"></div>

<style>
body {
background: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.hypno-loader {
width: 100px;
height: 100px;
border-radius: 50%;
background: conic-gradient(#0ff, #00f, #f0f, #0ff);
animation: spin 2s linear infinite;
mask-image: radial-gradient(circle, black 40%, transparent 41%);
-webkit-mask-image: radial-gradient(circle, black 40%, transparent 41%);
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>


🎨 Use it in creative portfolios, game loading pages, or as Easter eggs in your site.

More weird, wild, and useful CSS hacks daily here → @Html_codee

#css #animation #creative #html #frontend #weirdcss
🚀 What is Vibe Coding?
It’s a new way to build software — where you just say what you want, and AI helps you code it.
No boilerplate. No burnout. Just you, your idea, and a good vibe. 💻

🧠 AI Assistants You’ll Love:
Gemini · Claude 4 · Copilot · Cursor · Ghostwriter · Codeium

🎨 UI Builders That Feel Like Magic:
v0.dev · Lovable.dev · Framer AI · Locofy.ai · WebCrumbs

Dev Tools With Style:
Zed · Supabase · Ray.so · Carbon

💡 Why it's called vibe coding:
Because it’s fast, creative, visual, and fun.
You’re not just coding — you’re creating.

🧵 Try these tools, build what you love, and let the AI handle the boring parts.

Vibe coding = prompts + flow + joy.
🎉 Fun Project: Dancing Emoji Party

Bring life to your web page with this fun, animated dancing emoji effect. Pure HTML + CSS + JS = joy!

<div id="party-zone"></div>

<style>
body {
background: #111;
margin: 0;
overflow: hidden;
}

#party-zone {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.emoji {
position: absolute;
font-size: 2rem;
animation: float 5s linear infinite;
user-select: none;
}

@keyframes float {
0% {
transform: translateY(100vh) rotate(0deg);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateY(-10vh) rotate(720deg);
opacity: 0;
}
}
</style>

<script>
const zone = document.getElementById("party-zone");
const emojis = ["🎉", "🔥", "", "💻", "🧠", "🎵", "🚀", "👾"];

function spawnEmoji() {
const emoji = document.createElement("div");
emoji.classList.add("emoji");
emoji.textContent = emojis[Math.floor(Math.random() * emojis.length)];
emoji.style.left = Math.random() * 100 + "vw";
emoji.style.fontSize = Math.random() * 2 + 1 + "rem";
emoji.style.animationDuration = Math.random() * 3 + 3 + "s";
zone.appendChild(emoji);

setTimeout(() => emoji.remove(), 6000);
}

setInterval(spawnEmoji, 200);
</script>


🎊 Use this for celebrations, easter eggs, or just to surprise your visitors with some fun!

More creative web ideas at 👉 @Html_codee

#fun #javascript #frontend #animation #html #css #codeparty
import { useState, useEffect } from 'react';

const App = () => {
const [count, setCount] = useState(0);
const word = "strawberrrrry";

useEffect(() => {
// Count the number of 'r's in the word
const rCount = word.split('').filter(char => char === 'r').length;
setCount(rCount);
}, []);

return (
<div className="min-h-screen bg-gradient-to-br from-pink-200 via-red-100 to-purple-200 flex items-center justify-center p-4">
<div className="max-w-sm w-full">
<div className="bg-white rounded-2xl shadow-xl overflow-hidden transform transition-all hover:scale-105 duration-300">
<div className="p-6 text-center">
<div className="inline-flex items-center justify-center w-16 h-16 rounded-full bg-red-100 text-red-600 mb-4">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" className="w-8 h-8">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
</svg>
</div>
<h2 className="text-2xl font-bold text-gray-800 mb-2">Berry R Counter</h2>
<p className="text-gray-600 mb-4">How many "r"s are in the word "{word}"?</p>

<div className="bg-gradient-to-r from-pink-400 to-purple-400 rounded-xl p-6 mb-4 transform transition-all duration-500 hover:rotate-1">
<div className="text-5xl font-extrabold text-white">{count}</div>
<div className="text-white mt-1">R{count !== 1 ? 's' : ''} found!</div>
</div>

<button
onClick={() => window.location.reload()}
className="mt-2 px-4 py-2 bg-gradient-to-r from-purple-500 to-pink-500 text-white rounded-lg font-medium hover:from-purple-600 hover:to-pink-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 transition-all duration-300"
>
Try Again
</button>
</div>

<div className="px-6 pb-6 pt-2 flex justify-center space-x-1">
{[...Array(word.length)].map((_, i) => (
<div
key={i}
className={`w-3 h-3 rounded-full ${
word[i] === 'r'
? 'bg-red-500 animate-bounce'
: 'bg-gray-300'
}`}
style={{ animationDelay: `${i * 100}ms` }}
></div>
))}
</div>
</div>

<p className="mt-6 text-center text-sm text-gray-500">
A cute little counter card for a berry interesting question 🍓
</p>
</div>
</div>
);
};

export default App;
🌿 Did You Know AI Images Harm the Planet?

Creating one AI image with tools like DALL·E or Midjourney can use more energy than a ChatGPT reply.

Why?

Because generating a single image activates large GPU-powered servers for several seconds, consuming significant electricity—often from fossil fuels.

🔌 Studies show:
1 AI image ≈ 5–10 times more energy than a Google search
1000 images = several kg of CO₂ emissions

How to Create Smarter, Greener AI Art:
🎯 Generate only one image — avoid unnecessary re-rolls
📏 Use smaller sizes like 512x512 when possible
🔄 Reuse or slightly edit existing images
🧠 Use AI art only when needed, not just for fun
Let’s create with purpose, not pollution.
Art can be beautiful — and responsible.

🙏Please share this post

#GreenAI #EcoPrompt #SustainableDesign #AIandClimate #SmartCreativity
1
CodePen Blog
Chris’ Corner: Tokens

Mr. Brad Frost, and his brother Ian, have a new course they are selling called Subatomic: The Complete Guide to Design Tokens.

To be honest, I was a smidge skeptical. I know what a design token is. It’s a variable of a color or font-family or something. I pretty much only work on websites, so that exposes itself as a --custom-property and I already know that using those to abstract common usage of colors and fonts is smart and helpful. Done. I get that people managing a whole fleet of sites (and apps running in who-knows-what technologies) need a fancier token system, but that ain’t me.

But then we had those fellas on ShopTalk Show and I’ve updated my thinking that you really do want to lean on the expertise of people that have done this time and time again at scale.

(p.s. they also gave us a 20% discount code when they were on the show: SHOPTALKSHOWISAWESOME)

Spoiler: they advocate for a three-tier system of custom properties. The first is just the raw ingredients. Colors, but you’re just naming the color; sizes, but you’re just naming the sizes. Then there is this middle tier where you are essentially crafting a theme from those raw ingredients. And this layer is the most important, as it gives you this perfect layer of abstraction where you’re both not reaching into the raw ingredients and you’re not being too overly specific, like naming individual parts of components. The third layer should be avoided as best as it can, but if you absolutely need to get hyper specific, this is where you do it, and are still keeping in the land of custom properties.

This feels particularly smart to me, and I wish I had the benefit of the Frost Brother’s expertise on this before building some custom property systems I have built in the past. I tend to have that first layer with just the raw ingredients, and then jump right to what they’d call the third tier, which leads to a real blowing up of how many custom properties are in use, to the point that it feels overly cumbersome and like the whole system isn’t even helping that much. I’ll definitely be thinking about the theming tier next time I have a good refactoring opportunity.

Brad has also been steady on his global design system idea. I’ve posted my thoughts on this before, but I keep coming back to this one:

It feels like every decision you make will chip away at who will use it.

I’m fascinated at seeing how decisions get made that keep this thing as “global” as possible. That absolutely must be done, otherwise it’s just another design system which I thinks falls short of the goal. I appreciated Brian’s deep thoughts on it all as well, and I’m basically writing all this as an excuse to link to that.

Would a global design system have any design to it at all? Maybe; maybe not. It makes me wonder if the era of “flat design” that it seems like we’ve been in for a decade or so was partially the result of design systems, where the simpler things look the more practical it is to build all the “lego blocks” of a cohesive aesthetic. But it’s likely design trends move on. Maybe flat is over. Are design systems ready for very fancy/complex looks? Definitely worth a read is Amelia’s thoughts on “balancing the hard structure and soft flexibility” of UIs.

Speaking of design tokens, designtokens.fyi is a nice site for defining all the terms that design systems/tokens people like to throw around. A site with word definitions can be awfully boring so I appreciate the fun design here. I like the idea of calling a value system a “t-shirt” where you’re actually defining, say, a set of padding options, but the options follow the mental model of t-shirt sizes.

Sometimes you just need to look and see what other people are doing. In design, there always has been and will be design galleries full of inspirational stuff. But instead of linking to one of those, I’m going to link to to the[...]
🎨 CSS Neon Glow Card

Give your project a cyberpunk vibe with this glowing neon card effect — no JS required.

<div class="neon-card">
<h2>Html_codee</h2>
<p>Bright ideas in glowing code!</p>
</div>

<style>
body {
background: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}

.neon-card {
padding: 2rem;
border-radius: 15px;
background: #111;
color: #0ff;
box-shadow: 0 0 10px #0ff, 0 0 40px #0ff;
font-family: monospace;
text-align: center;
transition: 0.3s ease;
}

.neon-card:hover {
box-shadow: 0 0 20px #0ff, 0 0 60px #0ff;
transform: scale(1.05);
}
</style>


💡 Use it for profile cards, login screens, or cool landing pages.

More vibrant CSS magic every day — only at @Html_codee

#css #neon #frontend #htmlcodee #webdesign #uikit
🌟 CSS Text Flicker Animation

Want to give your title that retro hacker screen vibe? Here’s a cool flicker animation in pure CSS:

<h1 class="flicker">Html_codee Hacks</h1>

<style>
body {
background: #000;
color: #0f0;
font-family: monospace;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.flicker {
font-size: 2.5rem;
animation: flickerAnim 2s infinite;
}

@keyframes flickerAnim {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
opacity: 1;
}
20%, 22%, 24%, 55% {
opacity: 0.1;
}
}
</style>


💡 Use it for headers, hacker intros, or tech-themed pages.

📡 Stay tuned to @Html_codee for more motion-powered CSS gems!

#css #animation #textfx #frontend #htmlcodee #retro
🚀 Top 5 New & Useful HTML Tools in 2025!
Supercharge your web dev projects with these gems 🔧💡

1. 🧩 HTMX (2025 Update)
Write less JavaScript! Use just HTML attributes.
👉 htmx.org

2. 🎨 Open Props
Modern CSS variables you can plug into any project.
👉 open-props.style

3. 🧪 WebContainers by StackBlitz
Run Node.js in the browser with just HTML.
👉 stackblitz.com/webcontainers

4. 📦 IconBuddy 2.0
Access 250,000+ SVG icons with ease.
👉 iconbuddy.app

5. 📱 Responsive Viewer Tools
Test your HTML on all screen sizes at once.
Try: Responsively App or Chrome Multi-screen View

Save this post and follow @Html_codee for daily HTML/CSS/JS tips!
🗨️ Which tool is your favorite?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TRX Wallet Creator</title>
<script src="https://cdn.jsdelivr.net/npm/tronweb/dist/TronWeb.min.js"></script>
<style>
body {
font-family: Arial, sans-serif;
background: #0b0c10;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
padding: 30px;
}
.wallet-box {
background: #1f2833;
padding: 20px;
border-radius: 10px;
width: 100%;
max-width: 500px;
box-shadow: 0 0 10px #45a29e;
}
button {
background: #66fcf1;
border: none;
color: #0b0c10;
padding: 10px 20px;
margin: 10px 0;
font-size: 16px;
cursor: pointer;
border-radius: 5px;
}
input {
width: 100%;
padding: 10px;
margin-top: 5px;
background: #0b0c10;
color: #66fcf1;
border: 1px solid #66fcf1;
border-radius: 5px;
font-family: monospace;
}
label {
margin-top: 15px;
display: block;
}
</style>
</head>
<body>

<h1>🚀 TRX Wallet Creator</h1>
<div class="wallet-box">
<button onclick="generateWallet()">Generate New Wallet</button>

<label>TRX Address:
<input type="text" id="address" readonly>
</label>

<label>Private Key:
<input type="text" id="privateKey" readonly>
</label>

<label>Public Key:
<input type="text" id="publicKey" readonly>
</label>

<button onclick="copyAll()">📋 Copy All</button>
</div>

<script>
async function generateWallet() {
const tronWeb = new TronWeb({
fullHost: 'https://api.trongrid.io'
});

const account = await tronWeb.createAccount();

document.getElementById("address").value = account.address.base58;
document.getElementById("privateKey").value = account.privateKey;
document.getElementById("publicKey").value = account.publicKey;
}

function copyAll() {
const text = `
TRX Address: ${document.getElementById("address").value}
Private Key: ${document.getElementById("privateKey").value}
Public Key: ${document.getElementById("publicKey").value}
`.trim();

navigator.clipboard.writeText(text).then(() => {
alert("Copied to clipboard!");
});
}
</script>
</body>
</html>
🎮 CSS Game Button Pulse + Hover Glow

Level up your game UI or call-to-action buttons with this combo of pulse + hover glow effect — all in CSS!

<button class="pulse-button">Start Game</button>

<style>
body {
background: #111;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.pulse-button {
background: #28a745;
color: white;
padding: 1rem 2rem;
font-size: 1.2rem;
border: none;
border-radius: 10px;
cursor: pointer;
box-shadow: 0 0 0 rgba(40, 167, 69, 0.7);
animation: pulse 2s infinite;
transition: 0.3s ease;
}

.pulse-button:hover {
box-shadow: 0 0 15px #28a745, 0 0 30px #28a745;
transform: scale(1.05);
}

@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}
70% {
box-shadow: 0 0 0 20px rgba(40, 167, 69, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
}
}
</style>


🔥 This combo gives your button life — perfect for hero sections, dashboards, and game starts!

🎯 Follow @Html_codee for more stylish CSS tricks.

#css #animation #gameui #frontend #htmlcodee #creativecode
CodePen Blog
401: Outgoing Email

Hi!

We’re back!

Weird right? It’s been over 2 years.

We took a break after episode 400, not because we ran out of things to talk about, but because we were so focused on our CodePen 2.0 work, it got old not being able to discuss it yet. We’ll be talking plenty about that going forward. But CodePen has a ton of moving parts, so we’ll be talking about all of it.

This week we’ll be kicking off the podcast again talking about a huge and vital bit of CodePen infastructure: our email system. Outgoing email, that is. We get plenty of incoming email from y’all as well, but this is about the app itself sending email.

Timeline
* 00:06 We’re back!
* 01:22 Our transactional email system
* 05:21 Templating in Postmark
* 08:31 Hitting APIs to send emails
* 10:23 Building a sponsored email
* 17:20 Marie’s Monday morning routine
* 24:19 Analytics and metrics
* 26:55 Dealing with large images
* 30:12 MGML framework for email
Links
* Postmark
* SparkPost
* Cloudflare R2
* MJML
* BuySellAds