I made a little contribution, a possibility to animate icon in activity timeline according to tailwind presets animation (animate-spin, animate-pin, animate-pulse, animate-bounce)
So for example, if you want animate an icon you can use
ActivityIcon::make('status')
//with Enum
//->animation(IconAnimation::Pulse)
//or with a closure
->animation(fn (?string $state) => match ($state) {
'current' => IconAnimation::Pulse,
default => null,
})
//or with a string
->animation('animate-ping')
->icon(fn (?string $state): ?string => match ($state) {
'current' => 'heroicon-m-light-bulb',
default => 'heroicon-o-light-bulb',
})
Hello,
I made a little contribution, a possibility to animate icon in activity timeline according to tailwind presets animation (animate-spin, animate-pin, animate-pulse, animate-bounce)
So for example, if you want animate an icon you can use
Closure, Enum, or string are possibilities.