New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

glowing

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glowing

A TypeScript library for AI glowing effects

latest
npmnpm
Version
0.2.3
Version published
Maintainers
0
Created
Source

AI Glowing effects 💫

A modern TypeScript library for creating beautiful glowing border effects around HTML elements.

Installation

npm add glowing
yarn add glowing
pnpm add glowing

Usage

import { Glowing } from 'glowing'

// Create a glowing effect around an element
const element = document.querySelector('.my-element')

const glow = new Glowing(element, options)

// Control methods
glow.show() // Show the glow effect
glow.hide() // Hide the glow effect
glow.toggle() // Toggle visibility
glow.remove() // Remove the glow effect completely
// Set options
glow.setOptions({
  // Animation duration in ms
  rotationDuration: 2000,
  // Glow width in pixels
  width: 4,
  // Blend mode for the glow effect
  blendMode: 'color-dodge',
  // Custom gradient colors
  colors: ['cyan', 'purple', 'tomato'],
  // Additional gradient colors
  colors2: ['white', 'transparent', 'transparent', 'white', 'transparent', 'transparent', 'white'],
  // Blur intensity of the glow
  glowingBlurRatio: 1.5,
  // Optional timeout to auto-hide the glow (in ms)
  timeout: 3000,
  // Optional border radius override
  borderRadius: 8,
})

Development

  • npm run dev - Start development server with hot reload
  • npm run build - Build the package for production
  • npm test - Run tests
  • npm run format - Format all files using Prettier
  • npm run format:check - Check if files are properly formatted

TypeScript Support

This package includes TypeScript type definitions. No additional @types packages are needed.

Browser Support

The package is built for modern browsers and includes:

  • ES Modules build
  • CommonJS build
  • TypeScript declarations
  • Source maps

License

MIT

FAQs

Package last updated on 28 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts