Skip to content

anafibnshahibul/Custom-HTML-Tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌟 Custom HTML Tag

Lightweight Custom Elements for Modern Web Interfaces

The Lumina Component Library provides high-performance, easy-to-use HTML tags for interactive UI design. Built for efficiency and speed.


πŸš€ Key Features

1. ⌨️ Interactive TypeWriter (<type-writer>)

A dynamic text animation tool that simulates real-time typing.

  • Tag Control: Use the con attribute to choose between h1, p, span, etc.
  • Precision Timing: Control typing speed (speed) and initial start delay (delay).
  • Identity Support: Fully supports standard id and class for external CSS targeting.
  • Layout Friendly: Handles <br> tags for multi-line animations.

2. πŸ’» Pro Code Display (<cpc>)

A specialized container for displaying code snippets with high readability.

  • Shadow DOM Protection: Styles are isolated, ensuring zero conflict with your global CSS.
  • Theme Customization: Adjust background (bg) and font color (color) via simple attributes.
  • Auto-Formatting: Respects indentation and automatically wraps long code lines.
  • Snippet Badge: Includes a built-in "CODE" label for a professional documentation look.

πŸ“– How To Use

πŸ› οΈ Installation & Setup

To activate these custom tags in your project, follow these steps:

  1. Download: Get the custom-html-tag.js file from this repository.
  2. Link: Place the file in your directory and link it inside your HTML:
    <script src="custom-html-tag.js"></script>

TypeWriter Implementation

<type-writer 
    id="hero-text" 
    class="neon" 
    con="h2" 
    speed="100" 
    delay="500">
    Welcome to Lumina Project.
</type-writer>

CopyCode Implementation

<cpc bg="#1e293b" color="#38bdf8">
    // Your professional code here
    console.log("Custom Tag is working!");
</cpc>

About

Lightweight Custom Elements for Modern Web Interfaces

Topics

Resources

Stars

Watchers

Forks

Contributors