Home Web Front-end CSS Tutorial Text Art Showcase: Gladiators Battle ⚔️

Text Art Showcase: Gladiators Battle ⚔️

Nov 27, 2024 pm 06:12 PM

Text Art Showcase: Gladiators Battle ⚔️

Have you ever wondered how to combine stunning 3D Text Art with a highly interactive and immersive web experience? This project demonstrates how we achieved just that for Gladiators Battle—a browser-based card game where players collect, battle, and conquer in an epic gladiatorial arena.

Built as part of a creative challenge, this project showcases advanced CSS animations, JavaScript interactivity, and 3D effects to create an unforgettable experience. Whether you're a developer looking for inspiration or a gladiator enthusiast, this showcase will captivate you!

✨ Preview the Magic

When you visit the demo, here's what you'll experience:

  • A rotating 3D text art design that dynamically reacts to your mouse input.
  • Floating particles that add a magical, interactive element.
  • Interactive glowing effects following your cursor, enhancing the visual impact.
  • A responsive call-to-action button that directs you to the Gladiators Battle homepage.

? Check out the live demo on CodePen

https://codepen.io/HanGPIIIErr/pen/ZYzzMvO

? Behind the Design

This project was built using the three core front-end technologies: HTML, CSS, and JavaScript. Here's how everything comes together:

  1. HTML Structure

The structure is straightforward and easy to follow:

  • A container to hold all 3D and interactive elements.
  • A logo for branding, ensuring Gladiators Battle stands out.
  • A CTA (Call-to-Action) encouraging users to visit and play the game.
  • HTML Snippet:
<div>



<ol>
<li>CSS Styling</li>
</ol>

<p>The CSS transforms the structure into an immersive masterpiece:</p>

<ul>
<li>3D Perspective: Elements like the title and subtitle have depth using translateZ and rotation.</li>
<li>Dynamic Gradients and Shadows: These provide glowing effects, making the text pop.</li>
<li>Animations: Floating movements and glowing halos give a modern, fluid look.</li>
</ul>

<p>Key CSS Highlights:<br>
</p>

<pre class="brush:php;toolbar:false">.title {
  font-family: 'Cinzel', serif;
  font-size: 7rem;
  color: transparent;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffcc00, #ff4700, #e5b240, #ffcc00);
  -webkit-background-clip: text;
  text-shadow: 0px 6px 10px rgba(255, 71, 0, 0.6), 0 0 30px rgba(255, 204, 0, 0.8);
  transform: translateZ(100px) rotateX(10deg) rotateY(-10deg);
  animation: floating-title 4s infinite alternate ease-in-out, pulse 5s infinite;
}
Copy after login

Find the complete CSS in the CodePen project.

  1. JavaScript Interactivity

The JavaScript breathes life into the page:

Mouse Tracking: Tilts the text dynamically based on cursor movement.
Floating Particles: Particles follow your mouse, adding a magical touch.
Smooth Entry Animations: The logo and text art fade in gracefully when the page loads.
Copy after login

Key JavaScript Highlights:

/

/ Dynamic 3D Tilt Effect
textArt.addEventListener('mousemove', (e) => {
  const { clientX, clientY } = e;
  const { width, height } = container.getBoundingClientRect();

  const xRotation = ((clientY / height) - 0.5) * 30;
  const yRotation = ((clientX / width) - 0.5) * 30;

  textArt.style.transform = `rotateX(${xRotation}deg) rotateY(${yRotation}deg)`;
});
Copy after login

Find the complete JavaScript code in the CodePen project.

⚔️ Why Gladiators Battle?

Gladiators Battle isn’t just a game—it’s a universe of strategy and adventure. Here's what you can look forward to:

  • Collect powerful cards: Build your dream deck and dominate the arena.
  • Battle AI or real players: Test your strategy and claim glory.
  • Earn rewards: Unlock rare cards and valuable in-game currency.
  • Explore mini-games: Over 21 unique mini-games, from combat to puzzles.

? Visit now: GladiatorsBattle.com

? How to Try It Yourself

? Conclusion: A Universe of Possibilities

This 3D Text Art project is a small glimpse into what’s possible with HTML, CSS, and JavaScript. Whether you're a beginner or a seasoned developer, creative projects like this are an excellent way to showcase your skills and build interactive experiences.

But this is just the beginning. Dive into Gladiators Battle, where you’ll find epic battles, engaging mini-games, and a thriving community of gamers and developers.

? Explore More

  • Website: https://gladiatorsbattle.com/
  • X (formerly Twitter): https://x.com/GladiatorsBT
  • LinkedIn: https://www.linkedin.com/in/pierre-romain-lopez/
  • Discord: https://discord.gg/YBNF7KjGwx

Thank you for reading, and happy coding! ?

The above is the detailed content of Text Art Showcase: Gladiators Battle ⚔️. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1662
14
PHP Tutorial
1262
29
C# Tutorial
1235
24
Google Fonts   Variable Fonts Google Fonts Variable Fonts Apr 09, 2025 am 10:42 AM

I see Google Fonts rolled out a new design (Tweet). Compared to the last big redesign, this feels much more iterative. I can barely tell the difference

How to Create an Animated Countdown Timer With HTML, CSS and JavaScript How to Create an Animated Countdown Timer With HTML, CSS and JavaScript Apr 11, 2025 am 11:29 AM

Have you ever needed a countdown timer on a project? For something like that, it might be natural to reach for a plugin, but it’s actually a lot more

HTML Data Attributes Guide HTML Data Attributes Guide Apr 11, 2025 am 11:50 AM

Everything you ever wanted to know about data attributes in HTML, CSS, and JavaScript.

How We Created a Static Site That Generates Tartan Patterns in SVG How We Created a Static Site That Generates Tartan Patterns in SVG Apr 09, 2025 am 11:29 AM

Tartan is a patterned cloth that’s typically associated with Scotland, particularly their fashionable kilts. On tartanify.com, we gathered over 5,000 tartan

A Proof of Concept for Making Sass Faster A Proof of Concept for Making Sass Faster Apr 16, 2025 am 10:38 AM

At the start of a new project, Sass compilation happens in the blink of an eye. This feels great, especially when it’s paired with Browsersync, which reloads

PHP is A-OK for Templating PHP is A-OK for Templating Apr 11, 2025 am 11:04 AM

PHP templating often gets a bad rap for facilitating subpar code — but that doesn&#039;t have to be the case. Let’s look at how PHP projects can enforce a basic

How to Build Vue Components in a WordPress Theme How to Build Vue Components in a WordPress Theme Apr 11, 2025 am 11:03 AM

The inline-template directive allows us to build rich Vue components as a progressive enhancement over existing WordPress markup.

Programming Sass to Create Accessible Color Combinations Programming Sass to Create Accessible Color Combinations Apr 09, 2025 am 11:30 AM

We are always looking to make the web more accessible. Color contrast is just math, so Sass can help cover edge cases that designers might have missed.

See all articles