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
ball.html
4.1 KB
3D Bouncing and Moving Ball
What codes are needed ?
Html codes
Photo
CodePen Blog
Chris’ Corner: The New Web Safe

Back in the day I was a fan of the “Trebuchet MS” font. I didn’t like it large, but set fairly small I loved the look of it. Looked very website-ish — if that makes sense. https://blog.codepen.io/wp-content/uploads/2025/03/Screenshot-2025-03-17-at-11.11.49 AM-1024x396.png Honestly, at 12px, it still looks really nice.

The main reason I would use it is that it was considered a “web-safe” font, meaning most computers had “Trebuchet MS” installed and it would look more or less the same across those computers. On my latest-version macOS, I’ve still got it as a pre-installed system font. https://blog.codepen.io/wp-content/uploads/2025/03/Screenshot-2025-03-17-at-11.16.15 AM-1024x725.png I was thinking about this as Oliver Schöndorfer blogged about it recently. He points out that mobile operating systems changed the math on what is actually “web safe”.

Web-safe fonts system fonts that are pre-installed on most browsers and operating systems. While this was true 15 years ago, when you would find Arial, Times New Roman, Georgia or Verdana on Windows and Apple machines, this drastically changed with the mobile era.

Apparently none of the classic web-safe fonts are actually “web safe” anymore, which I suppose is ironic and kinda funny. I think designers have gotten more used to and OK with some differences in typography across browsers. Modern Font Stacks is a great resource for that. The whole point of a font stack is being cool with the actually used font being whichever one hits first in that list. The whole idea of system-ui is like a font stack in a keyword by itself, and particularly well suited to very “app like” websites that are helped by looking like the operating system they are being used on. Maybe the new web safe is just typography that works fine wherever. Or maybe that’s what it always meant.

Along those lines, I think uifonts.app is a clever idea of looking at fonts in a very practical “app like” way. I like looking at beautiful typeface type specimens as much as the next fella but in the end it matters more what the typeface looks like on my boring thing not your fancy thing. https://blog.codepen.io/wp-content/uploads/2025/03/Screenshot-2025-03-18-at-4.50.25 PM-998x1024.png They should probably add system-ui as an option!
Quick hits:

* It’s a modern miracle you can drop an image of typography onto a tool and it’ll tell you what fonts are used.
* One of the greatest experiments (that turns out to be perfectly viable) is building syntax highlighting into fonts themselves. Font foundries really need to get on this. Will buy.
* Elliot Jay Stocks recently shared this arranged alphabet and it rules.
* I’ve always shied away from -webkit-font-smoothing: antialiased; but David Bushell almost has me convinced otherwise as 1) it’s macOS (very literally only) 2) it can make rendered fonts look closer to other operating systems, that is, thinner. My holdup is that I generally like thicker and it will be more consistent for users on that OS. But David is convinced enough to put it in reset stylesheets, so have a think for yourself.

And some more visuals! https://blog.codepen.io/wp-content/uploads/2025/03/spa-4-sq_600x@2x-1024x1024.webp Spagetty from Dan Cederholm https://blog.codepen.io/wp-content/uploads/2025/03/Screenshot-2025-03-19-at-10.32.38 AM-704x1024.png Citywide by Jason Santa Maria https://blog.codepen.io/wp-content/uploads/2025/03/Screenshot-2025-03-19-at-11.53.15 AM-1024x504.png Revenge Font by DUDE https://blog.codepen.io/wp-content/uploads/2025/03/ramen-1024x861.png Times New Ramen by Seine Kongruangkit
OpenAI Unveils Native Image Generation in ChatGPT 👨‍🎨

Today, OpenAI introduced a groundbreaking feature in ChatGPT: native image generation

This new tool enables users to not only create images from scratch but also edit existing ones with precision and detail 👍

What sets it apart?
The AI can now generate visuals without any errors or artifacts—something that has long been a challenge in AI-generated imagery. In addition, the ability to handle multiple files simultaneously is a significant upgrade, making it even more versatile for creative tasks

Starting today, all users will gain access to this exciting new capability

@aipost 🪙 | Our X 🥇
🚀 5 Shocking Facts About How Programming Controls Your Life
1️⃣ AI Is Taking Over Jobs
Automation is replacing cashiers, translators, and even programmers. If you don’t adapt, you risk falling behind.
2️⃣ You Spend 4-6 Hours on Apps Daily
From social media to banking, your life revolves around apps built by programmers.
3️⃣ Hackers Attack Every 39 Seconds
Without strong cybersecurity, your personal data and bank accounts are at risk.
4️⃣ Coding Is the New Literacy
In the digital age, not knowing coding is like being illiterate in the past.
5️⃣ Algorithms Control Your Choices
AI decides what you watch, buy, and even believe through recommendation systems.
💡 Should everyone learn to code? Let’s discuss! ⬇️
📱 iPhone 17 – The Future of Smartphones? 🚀

Apple's iPhone 17 is already generating buzz, even before its official announcement! Here’s what leaks and rumors suggest about this game-changing device:

Ultra-Thin Design – A new iPhone 17 Air model is rumored to be Apple’s slimmest phone ever! (Source)

Camera Revolution – Say goodbye to the old camera bump! The Pro models might feature a rectangular camera bar. (Source)

120Hz ProMotion Display – Smooth scrolling for all models, not just the Pro versions! (Source)

Apple’s Own 5G Modem – Faster speeds and better battery life! (Source)

Possible iPhone 17 Ultra? – Apple might introduce a premium "Ultra" model with next-level performance. (Source)

Want to stay updated on the latest iPhone & tech news? Subscribe to @Html_codee now! 👇

🔗 Join us: @Html_codee

👉 What do you think? Which feature excites you the most? Comment below! 💬
Hello everyone! Why the inactivity? 🤔
SpaceX.html
10.4 KB
Share my html file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GSAP</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.9.1/gsap.min.js"></script>
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #111;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
overflow: hidden;
}

.container {
width: 600px;
height: 400px;
position: relative;
}

.box {
width: 100px;
height: 100px;
background-color: #fff;
border-radius: 10px;
position: absolute;
top: 150px;
left: 250px;
}

.circle {
width: 50px;
height: 50px;
border-radius: 50%;
background-color: #007bff;
position: absolute;
top: 50px;
left: 50px;
}

.text {
position: absolute;
color: #fff;
font-size: 24px;
font-weight: 600;
opacity: 0;
top: 300px;
left: 100px;
}
</style>
</head>
<body>
<div class="container">
<div class="box"></div>
<div class="circle"></div>
<div class="text">GSAP </div>
</div>

<script>
const tl = gsap.timeline({ repeat: -1, yoyo: true });

tl.from(".box", {
x: -200,
opacity: 0,
duration: 1,
ease: "power2.out"
})
.to(".box", {
y: -100,
duration: 1,
ease: "bounce.out"
})
.to(".box", {
scale: 1.2,
duration: 0.5,
ease: "power1.inOut"
})
.to(".box", {
rotation: 360,
duration: 1,
ease: "elastic.out(1, 0.3)"
}, "+=0.5")

.from(".circle", {
x: 200,
opacity: 0,
duration: 1,
ease: "power2.out"
}, "<")
.to(".circle", {
y: 100,
duration: 1,
ease: "bounce.out"
}, "<+0.2")
.to(".circle", {
scale: 0.8,
duration: 0.5,
ease: "power1.inOut"
}, "<")
.to(".circle", {
x: 300,
duration: 1,
ease: "elastic.out(1, 0.3)"
}, "<+0.5")

.fromTo(".text",
{ opacity: 0, y: 20 },
{ opacity: 1, y: 0, duration: 1, ease: "power3.out" },
"<0.5"
);
</script>
</body>
</html>
Which CSS framework do you prefer for your projects?
Anonymous Poll
100%
Tailwind css
0%
Bootstrap
0%
Other
CodePen Blog
Chris’ Corner: CSS Powered Componentry

New CSS features help us in all sorts of different ways, but here we’re going to look at them when they power a specific type of component, or make a type of component newly possible with less or no JavaScript.

* A single element CSS donut timer/countdown timer by Ben Frain — The surely least-used gradient type, conic-gradient() is used here to make donut (I’d call them charts) which when animated behave like a timer. This kind of thing changes the web in that we don’t need to reach for weightier or more complex technology to do something like this, which is actually visually pretty simple.
* Sliding 3D Image Frames In CSS by Temani Afif — This one isn’t rife with new CSS features, but that almost makes it more mind blowing to me. In the HTML is only an but the end result is a sliding-door on a 3D box that slides up to reveal the photo. This requires multiple backgrounds including a conic-gradient, a box-shadow and very exotic clip-path, not to mention a transition for the movement.
* ⭐️ Carousel Configurator by the Chrome Gang — This one is wild. It only works in Google Chrome Canary because of experimental features. Scrolling snapping is there of course, and that’s neat and fundamental to carousels, but the other three features are, as I said, wild. (1) a ::scroll-button which appends, apparently, a fully interactive button that advances scroll by one page. (2) a ::scroll-marker and group pseudo element which are apparently a replacement for a scrollbar and are instead fully interactive stated buttons that represent how many pages a scrolling container has. (3) an interactivity: inert; declaration which you can apply within an animation-timeline such that off-screen parts of the carousel are not interactive. All this seems extremely experimental but I’m here for it.
* Hide a header when scrolling down, show it again when scrolling up by Bramus Van Damme — With scroll-driven animations, you can “detect” if a page is being scrolled up or down, and in this case set the value of custom properties based on that information. Then with style() queries, set other styles, like hiding or showing a header. The big trick here is persisting the styles even when not scrolling, which involves an infinite transition-delay. This is the magic that keeps the header hidden until you scroll back up.
* Center Items in First Row with CSS Grid by Ryan Mulligan — When you’re using CSS Grid, for the most part, you set up grid lines and place items exactly along those grid lines. That’s why it’s weird to see “staggered” looking layouts, which is what it looks like when one row of items doesn’t line up exactly with the one below it. But if you just make twice as many columns as you need and offset by one when you need to, you’ve got this kind of control. The trick is figuring out when.