Skip to content

Fishing Catch

Fetch Data button with hook casting, fish biting, data pulling, and splash animation

Fishing Catch

by FreeCsStyles Dev's

AnimatedStorybook
🌐🎨⚛️💚🅰️🔥☁️
#fishing#catch#fetch#data#load#api

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/fishing-catch.

<iframe src="/embed/fishing-catch" sandbox="allow-scripts" loading="lazy" title="Fishing Catch" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Fishing Catch, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<div class="fishing-container">
  <button class="fishing-button" onclick="fetchData()">
    <span class="hook-icon">🎣</span>
    <span class="button-text">Fetch Data</span>
    <div class="hook"></div>
    <div class="fish"></div>
    <div class="data-pull"></div>
    <div class="splash"></div>
  </button>
</div>
CSS
.fishing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.fishing-button {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  border: none;
  border-radius: 0.75rem;
  color: #dbeafe;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.fishing-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.hook-icon {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.hook {
  position: absolute;
  top: 50%;
  left: 20%;
  width: 10px;
  height: 20px;
  border: 2px solid #9ca3af;
  border-radius: 0 0 50% 50%;
  border-top: none;
  opacity: 0;
}

.fishing-button.animating .hook {
  animation: hook-cast 0.5s ease-out forwards;
}

@keyframes hook-cast {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fish {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 20px;
  height: 12px;
  background: #f59e0b;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
}

.fishing-button.animating .fish {
  animation: fish-bite 0.3s ease-in-out 0.5s forwards;
}

@keyframes fish-bite {
  0% { opacity: 0; transform: translateX(-10px); }
  50% { opacity: 1; transform: translateX(5px); }
  100% { opacity: 1; transform: translateX(0); }
}

.data-pull {
  position: absolute;
  top: 50%;
  left: 40%;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  opacity: 0;
}

.fishing-button.animating .data-pull {
  animation: data-pull 0.8s ease-in-out 0.8s forwards;
}

@keyframes data-pull {
  0% { opacity: 0; width: 0; }
  50% { opacity: 1; width: 30px; }
  100% { opacity: 0; width: 0; }
}

.splash {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent);
  border-radius: 50%;
  opacity: 0;
}

.fishing-button.animating .splash {
  animation: splash 0.6s ease-out 1.6s forwards;
}

@keyframes splash {
  0% { width: 0; height: 0; opacity: 0; }
  50% { width: 40px; height: 20px; opacity: 1; }
  100% { width: 60px; height: 30px; opacity: 0; }
}

.fishing-button.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.fishing-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .fishing-button.animating * {
    animation: none !important;
  }
}
Tailwind CSS
<div class="flex justify-center items-center p-8">
  <button class="relative px-8 py-4 bg-gradient-to-r from-blue-700 to-blue-800 text-blue-100 font-bold rounded-xl overflow-hidden transition-all hover:-translate-y-1 hover:shadow-lg hover:shadow-blue-700/40 active:scale-95">
    <span class="mr-2">🎣</span>
    <span>Fetch Data</span>
    <div class="absolute inset-0 pointer-events-none">
      <div class="absolute top-1/2 left-1/4 w-2 h-5 border-2 border-gray-400 rounded-b-full -translate-y-1/2 animate-hook"></div>
      <div class="absolute top-1/2 left-1/3 w-5 h-3 bg-amber-400 rounded-full -translate-y-1/2 scale-0 animate-fish"></div>
      <div class="absolute top-1/2 left-1/2 w-8 h-0.5 bg-gradient-to-r from-blue-400 to-blue-600 -translate-y-1/2 scale-x-0 animate-data"></div>
      <div class="absolute bottom-2 left-1/2 w-0 h-0 bg-blue-400/60 rounded-full -translate-x-1/2 animate-splash"></div>
    </div>
  </button>
</div>

<style>
@keyframes hook {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(-50%); }
}
@keyframes fish {
  0% { opacity: 0; transform: translateX(-10px) translateY(-50%); }
  50% { opacity: 1; transform: translateX(5px) translateY(-50%); }
  100% { opacity: 1; transform: translateX(0) translateY(-50%); }
}
@keyframes data {
  0% { transform: translateX(-50%) translateY(-50%) scaleX(0); }
  50% { transform: translateX(-50%) translateY(-50%) scaleX(1); }
  100% { transform: translateX(-50%) translateY(-50%) scaleX(0); }
}
@keyframes splash {
  0% { width: 0; height: 0; opacity: 0; transform: translateX(-50%); }
  50% { width: 40px; height: 20px; opacity: 1; transform: translateX(-50%); }
  100% { width: 60px; height: 30px; opacity: 0; transform: translateX(-50%); }
}
.animate-hook { animation: hook 0.5s ease-out forwards; }
.animate-fish { animation: fish 0.3s ease-in-out 0.5s forwards; }
.animate-data { animation: data 0.8s ease-in-out 0.8s forwards; }
.animate-splash { animation: splash 0.6s ease-out 1.6s forwards; }
</style>
React
import { useState, useEffect } from 'react';

function FishingCatchButton() {
  const [phase, setPhase] = useState('idle');
  
  const handleClick = () => {
    if (phase === 'animating') return;
    setPhase('animating');
    
    setTimeout(() => {
      setPhase('success');
      setTimeout(() => setPhase('idle'), 2000);
    }, 2200);
  };
  
  return (
    <>
      <style>{`
        .fishing-btn {
          position: relative;
          padding: 1rem 2rem;
          background: linear-gradient(135deg, #1e40af, #1e3a8a);
          border: none;
          border-radius: 0.75rem;
          color: #dbeafe;
          font-weight: 700;
          cursor: pointer;
          overflow: hidden;
          transition: all 0.3s ease;
          box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
        }
        .fishing-btn.animating {
          background: linear-gradient(135deg, #2563eb, #1e40af);
        }
        .fishing-btn.success {
          background: linear-gradient(135deg, #10b981, #059669);
          color: white;
        }
        .fishing-btn:hover:not(:disabled) {
          transform: translateY(-2px);
          box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
        }
        .fish-element {
          position: absolute;
          opacity: 0;
        }
        .hook {
          top: 50%;
          left: 20%;
          width: 10px;
          height: 20px;
          border: 2px solid #9ca3af;
          border-radius: 0 0 50% 50%;
          border-top: none;
          transform: translateY(-20px);
        }
        .fish {
          top: 50%;
          left: 30%;
          width: 20px;
          height: 12px;
          background: #f59e0b;
          border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
          transform: translateX(-10px) translateY(-50%);
        }
        .data-pull {
          top: 50%;
          left: 40%;
          width: 30px;
          height: 2px;
          background: linear-gradient(90deg, #3b82f6, #1d4ed8);
          transform: translateY(-50%) scaleX(0);
        }
        .splash {
          bottom: 10px;
          left: 50%;
          width: 0;
          height: 0;
          background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent);
          border-radius: 50%;
          transform: translateX(-50%);
        }
        @keyframes hookCast {
          0% { opacity: 0; transform: translateY(-20px); }
          100% { opacity: 1; transform: translateY(-50%); }
        }
        @keyframes fishBite {
          0% { opacity: 0; transform: translateX(-10px) translateY(-50%); }
          50% { opacity: 1; transform: translateX(5px) translateY(-50%); }
          100% { opacity: 1; transform: translateX(0) translateY(-50%); }
        }
        @keyframes dataPull {
          0% { opacity: 0; width: 0; }
          50% { opacity: 1; width: 30px; }
          100% { opacity: 0; width: 0; }
        }
        @keyframes splashAnim {
          0% { width: 0; height: 0; opacity: 0; }
          50% { width: 40px; height: 20px; opacity: 1; }
          100% { width: 60px; height: 30px; opacity: 0; }
        }
      `}</style>
      <button
        className={`fishing-btn ${phase}`}
        onClick={handleClick}
        disabled={phase === 'animating'}
      >
        <span className="mr-2">🎣</span>
        <span>{phase === 'success' ? 'Data Loaded!' : 'Fetch Data'}</span>
        {phase === 'animating' && (
          <>
            <div className="fish-element hook" style={{ animation: 'hookCast 0.5s ease-out forwards' }}></div>
            <div className="fish-element fish" style={{ animation: 'fishBite 0.3s ease-in-out 0.5s forwards' }}></div>
            <div className="fish-element data-pull" style={{ animation: 'dataPull 0.8s ease-in-out 0.8s forwards' }}></div>
            <div className="fish-element splash" style={{ animation: 'splashAnim 0.6s ease-out 1.6s forwards' }}></div>
          </>
        )}
      </button>
    </>
  );
}

export default FishingCatchButton;
Vue
<template>
  <div class="fishing-container">
    <button
      :class="['fishing-button', phase]"
      @click="handleClick"
      :disabled="phase === 'animating'"
    >
      <span class="hook-icon">🎣</span>
      <span class="button-text">{{ phase === 'success' ? 'Data Loaded!' : 'Fetch Data' }}</span>
      <div v-if="phase === 'animating'" class="animation-elements">
        <div class="fish-element hook"></div>
        <div class="fish-element fish"></div>
        <div class="fish-element data-pull"></div>
        <div class="fish-element splash"></div>
      </div>
    </button>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const phase = ref('idle');

const handleClick = () => {
  if (phase.value === 'animating') return;
  phase.value = 'animating';
  
  setTimeout(() => {
    phase.value = 'success';
    setTimeout(() => {
      phase.value = 'idle';
    }, 2000);
  }, 2200);
};
</script>

<style scoped>
.fishing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.fishing-button {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  border: none;
  border-radius: 0.75rem;
  color: #dbeafe;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.fishing-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.fishing-button.animating {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.fishing-button.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.hook-icon { margin-right: 0.5rem; }

.fish-element { position: absolute; opacity: 0; }
.hook { top: 50%; left: 20%; width: 10px; height: 20px; border: 2px solid #9ca3af; border-radius: 0 0 50% 50%; border-top: none; transform: translateY(-20px); animation: hookCast 0.5s ease-out forwards; }
.fish { top: 50%; left: 30%; width: 20px; height: 12px; background: #f59e0b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: translateX(-10px) translateY(-50%); animation: fishBite 0.3s ease-in-out 0.5s forwards; }
.data-pull { top: 50%; left: 40%; width: 30px; height: 2px; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transform: translateY(-50%) scaleX(0); animation: dataPull 0.8s ease-in-out 0.8s forwards; }
.splash { bottom: 10px; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent); border-radius: 50%; transform: translateX(-50%); animation: splashAnim 0.6s ease-out 1.6s forwards; }

@keyframes hookCast { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(-50%); } }
@keyframes fishBite { 0% { opacity: 0; transform: translateX(-10px) translateY(-50%); } 50% { opacity: 1; transform: translateX(5px) translateY(-50%); } 100% { opacity: 1; transform: translateX(0) translateY(-50%); } }
@keyframes dataPull { 0% { opacity: 0; width: 0; } 50% { opacity: 1; width: 30px; } 100% { opacity: 0; width: 0; } }
@keyframes splashAnim { 0% { width: 0; height: 0; opacity: 0; } 50% { width: 40px; height: 20px; opacity: 1; } 100% { width: 60px; height: 30px; opacity: 0; } }

.fishing-button:disabled { opacity: 0.7; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  .fishing-button.animating .fish-element {
    animation: none !important;
  }
}
</style>
Svelte
<script>
  let phase = 'idle';
  
  function handleClick() {
    if (phase === 'animating') return;
    phase = 'animating';
    
    setTimeout(() => {
      phase = 'success';
      setTimeout(() => {
        phase = 'idle';
      }, 2000);
    }, 2200);
  }
</script>

<div class="fishing-container">
  <button class="fishing-button {phase}" on:click={handleClick} disabled={phase === 'animating'}>
    <span class="hook-icon">🎣</span>
    <span class="button-text">{phase === 'success' ? 'Data Loaded!' : 'Fetch Data'}</span>
    {#if phase === 'animating'}
      <div class="fish-element hook"></div>
      <div class="fish-element fish"></div>
      <div class="fish-element data-pull"></div>
      <div class="fish-element splash"></div>
    {/if}
  </button>
</div>

<style>
  .fishing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  .fishing-button {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    border: none;
    border-radius: 0.75rem;
    color: #dbeafe;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  }
  .fishing-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
  }
  .fishing-button.animating {
    background: linear-gradient(135deg, #2563eb, #1e40af);
  }
  .fishing-button.success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
  }
  .hook-icon { margin-right: 0.5rem; }
  .fish-element { position: absolute; opacity: 0; }
  .hook { top: 50%; left: 20%; width: 10px; height: 20px; border: 2px solid #9ca3af; border-radius: 0 0 50% 50%; border-top: none; transform: translateY(-20px); animation: hookCast 0.5s ease-out forwards; }
  .fish { top: 50%; left: 30%; width: 20px; height: 12px; background: #f59e0b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: translateX(-10px) translateY(-50%); animation: fishBite 0.3s ease-in-out 0.5s forwards; }
  .data-pull { top: 50%; left: 40%; width: 30px; height: 2px; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transform: translateY(-50%) scaleX(0); animation: dataPull 0.8s ease-in-out 0.8s forwards; }
  .splash { bottom: 10px; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent); border-radius: 50%; transform: translateX(-50%); animation: splashAnim 0.6s ease-out 1.6s forwards; }
  @keyframes hookCast { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(-50%); } }
  @keyframes fishBite { 0% { opacity: 0; transform: translateX(-10px) translateY(-50%); } 50% { opacity: 1; transform: translateX(5px) translateY(-50%); } 100% { opacity: 1; transform: translateX(0) translateY(-50%); } }
  @keyframes dataPull { 0% { opacity: 0; width: 0; } 50% { opacity: 1; width: 30px; } 100% { opacity: 0; width: 0; } }
  @keyframes splashAnim { 0% { width: 0; height: 0; opacity: 0; } 50% { width: 40px; height: 20px; opacity: 1; } 100% { width: 60px; height: 30px; opacity: 0; } }
  .fishing-button:disabled { opacity: 0.7; cursor: not-allowed; }
  @media (prefers-reduced-motion: reduce) { .fishing-button.animating .fish-element { animation: none !important; } }
</style>
Angular
import { Component } from '@angular/core';

@Component({
  selector: 'app-fishing-catch-button',
  template: `
    <div class="fishing-container">
      <button
        [class]="'fishing-button ' + phase"
        (click)="handleClick()"
        [disabled]="phase === 'animating'"
      >
        <span class="hook-icon">🎣</span>
        <span class="button-text">{{ phase === 'success' ? 'Data Loaded!' : 'Fetch Data' }}</span>
        <div *ngIf="phase === 'animating'" class="animation-elements">
          <div class="fish-element hook"></div>
          <div class="fish-element fish"></div>
          <div class="fish-element data-pull"></div>
          <div class="fish-element splash"></div>
        </div>
      </button>
    </div>
  `,
  styles: [`
    .fishing-container {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2rem;
    }
    .fishing-button {
      position: relative;
      padding: 1rem 2rem;
      background: linear-gradient(135deg, #1e40af, #1e3a8a);
      border: none;
      border-radius: 0.75rem;
      color: #dbeafe;
      font-weight: 700;
      cursor: pointer;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    }
    .fishing-button:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
    }
    .fishing-button.animating {
      background: linear-gradient(135deg, #2563eb, #1e40af);
    }
    .fishing-button.success {
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
    }
    .hook-icon { margin-right: 0.5rem; }
    .fish-element { position: absolute; opacity: 0; }
    .hook { top: 50%; left: 20%; width: 10px; height: 20px; border: 2px solid #9ca3af; border-radius: 0 0 50% 50%; border-top: none; transform: translateY(-20px); animation: hookCast 0.5s ease-out forwards; }
    .fish { top: 50%; left: 30%; width: 20px; height: 12px; background: #f59e0b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: translateX(-10px) translateY(-50%); animation: fishBite 0.3s ease-in-out 0.5s forwards; }
    .data-pull { top: 50%; left: 40%; width: 30px; height: 2px; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transform: translateY(-50%) scaleX(0); animation: dataPull 0.8s ease-in-out 0.8s forwards; }
    .splash { bottom: 10px; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent); border-radius: 50%; transform: translateX(-50%); animation: splashAnim 0.6s ease-out 1.6s forwards; }
    @keyframes hookCast { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(-50%); } }
    @keyframes fishBite { 0% { opacity: 0; transform: translateX(-10px) translateY(-50%); } 50% { opacity: 1; transform: translateX(5px) translateY(-50%); } 100% { opacity: 1; transform: translateX(0) translateY(-50%); } }
    @keyframes dataPull { 0% { opacity: 0; width: 0; } 50% { opacity: 1; width: 30px; } 100% { opacity: 0; width: 0; } }
    @keyframes splashAnim { 0% { width: 0; height: 0; opacity: 0; } 50% { width: 40px; height: 20px; opacity: 1; } 100% { width: 60px; height: 30px; opacity: 0; } }
    .fishing-button:disabled { opacity: 0.7; cursor: not-allowed; }
    @media (prefers-reduced-motion: reduce) { .fishing-button.animating .fish-element { animation: none !important; } }
  `]
})
export class FishingCatchButtonComponent {
  phase = 'idle';

  handleClick(): void {
    if (this.phase === 'animating') return;
    this.phase = 'animating';
    
    setTimeout(() => {
      this.phase = 'success';
      setTimeout(() => {
        this.phase = 'idle';
      }, 2000);
    }, 2200);
  }
}
LWC — HTML template
<template>
  <div class="fishing-container">
    <button class="fishing-button {buttonClass}" onclick={handleClick} disabled={isAnimating}>
      <span class="hook-icon">🎣</span>
      <span class="button-text">{buttonText}</span>
      <template if:true={isAnimating}>
        <div class="fish-element hook"></div>
        <div class="fish-element fish"></div>
        <div class="fish-element data-pull"></div>
        <div class="fish-element splash"></div>
      </template>
    </button>
  </div>
</template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';

export default class FishingCatchButton extends LightningElement {
  @api label = 'Fetch Data';
  phase = 'idle';
  
  get isAnimating() {
    return this.phase === 'animating';
  }
  
  get buttonText() {
    return this.phase === 'success' ? 'Data Loaded!' : this.label;
  }
  
  get buttonClass() {
    return `fishing-button ${this.phase}`;
  }
  
  handleClick() {
    if (this.phase === 'animating') return;
    this.phase = 'animating';
    
    setTimeout(() => {
      this.phase = 'success';
      setTimeout(() => {
        this.phase = 'idle';
      }, 2000);
    }, 2200);
  }
}
LWC — CSS
.fishing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.fishing-button {
  position: relative;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  border: none;
  border-radius: 0.75rem;
  color: #dbeafe;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.fishing-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.fishing-button.animating {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.fishing-button.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.hook-icon { margin-right: 0.5rem; }
.fish-element { position: absolute; opacity: 0; }
.hook { top: 50%; left: 20%; width: 10px; height: 20px; border: 2px solid #9ca3af; border-radius: 0 0 50% 50%; border-top: none; transform: translateY(-20px); animation: hookCast 0.5s ease-out forwards; }
.fish { top: 50%; left: 30%; width: 20px; height: 12px; background: #f59e0b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: translateX(-10px) translateY(-50%); animation: fishBite 0.3s ease-in-out 0.5s forwards; }
.data-pull { top: 50%; left: 40%; width: 30px; height: 2px; background: linear-gradient(90deg, #3b82f6, #1d4ed8); transform: translateY(-50%) scaleX(0); animation: dataPull 0.8s ease-in-out 0.8s forwards; }
.splash { bottom: 10px; left: 50%; width: 0; height: 0; background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent); border-radius: 50%; transform: translateX(-50%); animation: splashAnim 0.6s ease-out 1.6s forwards; }
@keyframes hookCast { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(-50%); } }
@keyframes fishBite { 0% { opacity: 0; transform: translateX(-10px) translateY(-50%); } 50% { opacity: 1; transform: translateX(5px) translateY(-50%); } 100% { opacity: 1; transform: translateX(0) translateY(-50%); } }
@keyframes dataPull { 0% { opacity: 0; width: 0; } 50% { opacity: 1; width: 30px; } 100% { opacity: 0; width: 0; } }
@keyframes splashAnim { 0% { width: 0; height: 0; opacity: 0; } 50% { width: 40px; height: 20px; opacity: 1; } 100% { width: 60px; height: 30px; opacity: 0; } }
.fishing-button:disabled { opacity: 0.7; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .fishing-button.animating .fish-element { animation: none !important; } }
LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>59.0</apiVersion>
  <isExposed>true</isExposed>
  <targets>
    <target>lightning__AppPage</target>
    <target>lightning__RecordPage</target>
    <target>lightning__HomePage</target>
  </targets>
</LightningComponentBundle>

Where Fishing Catch fits

  • Fetch data
  • Load content
  • API calls
  • Data retrieval

Interaction states & animations

  • Hook Cast
  • Fish Bite
  • Data Pull
  • Splash
  • Loaded

Topics

  • #fishing
  • #catch
  • #fetch
  • #data
  • #load
  • #api

Accessibility notes

Animation is decorative. Button text remains readable. Respect reduced-motion preference.

Browser support

  • All modern browsers