balloons-js
Version:
Animated balloons effect for your website
12 lines (11 loc) • 8.49 kB
TypeScript
export declare const balloonDefaultSize: {
width: number;
height: number;
};
export declare const createBallonElement: ({ balloonColor, lightColor, width, }: {
balloonColor: string;
lightColor: string;
width: number;
}) => HTMLElement;
export declare const balloonSvgHTML: string;
export declare const svgFiltersHtml = "\n<svg>\n <defs>\n <filter\n id=\"filter0_f_102_49\"\n x=\"114.588\"\n y=\"250.59\"\n width=\"20.5082\"\n height=\"357.697\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"1\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter1_ii_102_49\"\n x=\"22.0213\"\n y=\"13\"\n width=\"188.967\"\n height=\"241\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset />\n <feGaussianBlur stdDeviation=\"4.5\" />\n <feComposite in2=\"hardAlpha\" operator=\"arithmetic\" k2=\"-1\" k3=\"1\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0\"\n />\n <feBlend\n mode=\"normal\"\n in2=\"shape\"\n result=\"effect1_innerShadow_102_49\"\n />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset />\n <feGaussianBlur stdDeviation=\"18\" />\n <feComposite in2=\"hardAlpha\" operator=\"arithmetic\" k2=\"-1\" k3=\"1\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0\"\n />\n <feBlend\n mode=\"overlay\"\n in2=\"effect1_innerShadow_102_49\"\n result=\"effect2_innerShadow_102_49\"\n />\n </filter>\n <filter\n id=\"filter2_f_102_49\"\n x=\"111\"\n y=\"253.959\"\n width=\"15\"\n height=\"7.04138\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"0.5\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter3_f_102_49\"\n x=\"0\"\n y=\"0\"\n width=\"223\"\n height=\"259\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"22\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter4_df_102_49\"\n x=\"46.7878\"\n y=\"59.8922\"\n width=\"79.1969\"\n height=\"87.7179\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feColorMatrix\n in=\"SourceAlpha\"\n type=\"matrix\"\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\"\n result=\"hardAlpha\"\n />\n <feOffset dy=\"4\" />\n <feGaussianBlur stdDeviation=\"13\" />\n <feComposite in2=\"hardAlpha\" operator=\"out\" />\n <feColorMatrix\n type=\"matrix\"\n values=\"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.8 0\"\n />\n <feBlend\n mode=\"overlay\"\n in2=\"BackgroundImageFix\"\n result=\"effect1_dropShadow_102_49\"\n />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"effect1_dropShadow_102_49\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"5.5\"\n result=\"effect2_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter5_f_102_49\"\n x=\"102.515\"\n y=\"46.8202\"\n width=\"61.3035\"\n height=\"67.8351\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"8\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter6_f_102_49\"\n x=\"34\"\n y=\"73.2313\"\n width=\"22.9258\"\n height=\"67.4198\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"4\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter7_f_102_49\"\n x=\"40\"\n y=\"79.2313\"\n width=\"10.9258\"\n height=\"55.4198\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"1\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter8_f_102_49\"\n x=\"186.419\"\n y=\"106.345\"\n width=\"13.5106\"\n height=\"48.2987\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"1.93775\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <filter\n id=\"filter9_f_102_49\"\n x=\"189.326\"\n y=\"109.252\"\n width=\"7.69731\"\n height=\"42.4855\"\n filterUnits=\"userSpaceOnUse\"\n color-interpolation-filters=\"sRGB\"\n >\n <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\" />\n <feBlend\n mode=\"normal\"\n in=\"SourceGraphic\"\n in2=\"BackgroundImageFix\"\n result=\"shape\"\n />\n <feGaussianBlur\n stdDeviation=\"0.484439\"\n result=\"effect1_foregroundBlur_102_49\"\n />\n </filter>\n <linearGradient\n id=\"paint0_linear_102_49\"\n x1=\"124.798\"\n y1=\"253\"\n x2=\"124.798\"\n y2=\"606\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stop-color=\"white\" />\n <stop offset=\"0.474934\" stop-color=\"grey\" stop-opacity=\"0.1\" />\n <stop offset=\"0.722707\" stop-color=\"white\" stop-opacity=\"0.6\" />\n <stop offset=\"0.93469\" stop-color=\"grey\" stop-opacity=\"0.7\" />\n <stop offset=\"1\" stop-color=\"white\" stop-opacity=\"0\" />\n </linearGradient>\n <radialGradient\n id=\"paint1_radial_102_49\"\n cx=\"0\"\n cy=\"0\"\n r=\"1\"\n gradientUnits=\"userSpaceOnUse\"\n gradientTransform=\"translate(134 149.5) rotate(-123.69) scale(82.9277 65.4692)\"\n >\n <stop />\n <stop offset=\"1\" stop-opacity=\"0\" />\n </radialGradient>\n </defs>\n</svg>\n";