Liquid Logo

An advanced WebGL-based component that applies a dynamic, liquid effect to logos or images using custom shaders.

API

Prop NameTypeDefaultDescription
classstring""Additional CSS classes for custom styling.
imageUrlstring""URL of the image to apply the liquid effect.
patternScalenumber2Scale of the distortion pattern.
refractionnumber0.015Amount of refraction applied to the image.
edgenumber0.4Sharpness of the edge effect.
patternBlurnumber0.005Blur effect applied to the pattern.
liquidnumber0.07Intensity of the liquid animation.
speednumber0.3Animation speed of the liquid effect.

Component Code

You can copy and paste the following code to create this component:

LiquidLogo.vue
parseLogoImage.ts
shader.ts

Features

  • Dynamic Liquid Effect: Transforms logos or images with a fluid, liquid-like motion.
  • Custom Shader Utilization: Built with WebGL2 and GLSL shaders for real-time rendering.
  • Interactive Animations: Smooth and configurable animation effects.
  • Responsive Scaling: Automatically adjusts to different screen sizes and resolutions.
  • Configurable Parameters: Offers a wide range of props to control effects like refraction, speed, and edge sharpness.

Credits