A stylish collection of React components with dynamic features and special effects, inspired by the fast-paced action of Devil May Cry.
- Enhanced Progress Bars: Fluid animations and energy effects for all progress bar variants
- Improved Visual Effects: Dynamic glow effects, particle animations, and depth layers
- Technical Improvements: Better performance and smoother animations
npm install react-devil-trigger
[!IMPORTANT] You need to import the CSS styles in your main file (e.g.,
main.tsx
orApp.jsx
) to apply the default styles and animations.
import 'react-devil-trigger/dist/devil-trigger.css'; // Import CSS styles in your main file
Stylish audio player with Devil May Cry themes and effects.
import { AudioDevilTrigger } from 'react-devil-trigger';
function App() {
return (
<div>
<AudioDevilTrigger
audioSrc='path-to-audio.mp3'
triggerKey='jackpot' // Optional trigger word
characterTheme='dante'
/>
</div>
);
}
Dynamic progress bars with Devil May Cry inspired effects and animations.
import { DevilProgressBar } from 'react-devil-trigger';
function App() {
const [progress, setProgress] = useState(50);
return (
<div>
<DevilProgressBar
progress={progress}
variant="stylized"
characterTheme="dante"
label="Devil Trigger"
showPercentage={true}
/>
</div>
);
}
Choose from various stylistic variants:
// Default style
<DevilProgressBar progress={75} />
// Stylized with energy effects
<DevilProgressBar progress={75} variant="stylized" />
// Devil Trigger gauge
<DevilProgressBar progress={75} variant="dt" />
// Sin Devil Trigger gauge (more intense effects)
<DevilProgressBar progress={75} variant="sdt" />
// Royal Guard style
<DevilProgressBar progress={75} variant="royal" />
Choose from different size options:
<DevilProgressBar progress={75} height="xs" />
<DevilProgressBar progress={75} height="sm" />
<DevilProgressBar progress={75} height="md" /> // Default
<DevilProgressBar progress={75} height="lg" />
<DevilProgressBar progress={75} height="xl" />
Choose from various Devil May Cry character themes:
<AudioDevilTrigger
audioSrc="devils-never-cry.mp3"
characterTheme="dante"
/>
<DevilProgressBar
progress={75}
characterTheme="vergil"
variant="sdt"
/>
Available themes: dante
, vergil
, nero
, v
, trish
, lady
, nico
, sparda
, default
Choose where the player appears on the screen:
<AudioDevilTrigger
position="bottom-right" // Default position
/>
<AudioDevilTrigger
position="top-center" // Centered at the top
/>
<AudioDevilTrigger
position="bottom-center" // Centered at the bottom
/>
Available positions: bottom-right
, bottom-left
, top-right
, top-left
, bottom-center
, top-center
Choose the size that fits your design:
<AudioDevilTrigger
size="sm" // Small size
/>
<AudioDevilTrigger
size="lg" // Large size
/>
Available sizes: sm
, md
(default), lg
, xl
When customizing the background, there are two ways to set opacity:
-
Using
backgroundColor
with opacity included:<AudioDevilTrigger backgroundColor='rgba(0, 0, 0, 0.7)' // backgroundOpacity is ignored when using rgba/hsla format />
-
Using
backgroundColor
withbackgroundOpacity
:
<AudioDevilTrigger
backgroundColor='#000000' // or any color name or hex code
backgroundOpacity={0.7} // This will be applied to the color
/>
You can also adjust the backdrop blur effect:
<AudioDevilTrigger
backdropBlur={5} // Custom blur value in pixels
// or
backdropBlur={false} // Disable blur
/>
Each theme comes with predefined colors, but you can override them:
<AudioDevilTrigger
characterTheme='vergil'
primaryColor='#0055aa' // Override primary color
secondaryColor='#ffffff' // Override secondary color
accentColor='#00ffee' // Override accent color
/>
- CHANGELOG - History of changes (English)
- CHANGELOG en Español - Historial de cambios (Español)
ISC License - see LICENSE for details