Trophy Animation Using HTML & CSS

Trophy Animation Using HTML & CSS
Code Snippet:Trophy Animation
Author: Motionharvest
Published: March 23, 2024
Last Updated: March 23, 2024
Downloads: 130
License: MIT
Edit Code online: View on CodePen
Read More

This code snippet helps you to create a trophy animation using HTML and CSS. It generates confetti and star animations. The confetti moves randomly.

Moreover, you can use this code to create a trophy animation for your website or presentation. It adds visual appeal and engagement to your content. The animation is created using HTML and CSS, making it easy to integrate and customize.

How to Create Trophy Animation Using Html & Css

1. First of all, load the Normalize CSS and Prefixfree JS by adding the following CDN links into the head tag of your HTML document.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

2. In the HTML file, define the structure for your trophy animation using <div> elements. Include an outer container <div> with a class of trophy-container, and nested <div> elements for different parts of the trophy, like the base and the cup.

<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="none" x="0px" y="0px" width="500px" height="800px" viewBox="0 0 500 800">
	<defs>
		<radialGradient id="Gradient_1" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="211.4" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, 0,0) " spreadMethod="pad">
			<stop offset="0%" stop-color="#9293D6" />

			<stop offset="100%" stop-color="#9293D6" stop-opacity="0" />
		</radialGradient>

		<radialGradient id="Gradient_2" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="134.5" fx="0" fy="0" gradientTransform="matrix( 1.0000000000000002, 0, 0, 1.0000000000000002, 37.7,-44.75) " spreadMethod="pad">
			<stop offset="0%" stop-color="#C9EBFA" />

			<stop offset="100%" stop-color="#57ABDE" />
		</radialGradient>

		<radialGradient id="Gradient_3" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="66.10000000000002" fx="0" fy="0" gradientTransform="matrix( 0.9999999999999998, 0, 0, 0.9999999999999998, 23.6,-99.85) " spreadMethod="pad">
			<stop offset="0%" stop-color="#C9E5FA" />

			<stop offset="100%" stop-color="#57A0DE" />

			<stop offset="100%" stop-color="#5CBDE0" />
		</radialGradient>

		<radialGradient id="Gradient_4" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="59.9" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, 17.85,-147.3) " spreadMethod="pad">
			<stop offset="0%" stop-color="#BBD5E8" />

			<stop offset="100%" stop-color="#529FCE" />
		</radialGradient>

		<radialGradient id="Gradient_5" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="107.75" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, -21.9,21.95) " spreadMethod="pad">
			<stop offset="0%" stop-color="#A8D4F1" />

			<stop offset="100%" stop-color="#57A0DE" />
		</radialGradient>

		<radialGradient id="Gradient_6" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="242.49999999999997" fx="0" fy="0" gradientTransform="matrix( 1.0000000000000002, 0, 0, 1.0000000000000002, 36.4,-58.55) " spreadMethod="pad">
			<stop offset="0%" stop-color="#C9E9FA" />

			<stop offset="100%" stop-color="#57A0DE" />
		</radialGradient>

		<linearGradient id="Gradient_7" gradientUnits="userSpaceOnUse" x1="-131.25" y1="-258.1" x2="131.25" y2="-258.1" spreadMethod="pad">
			<stop offset="0%" stop-color="#5599FF" />

			<stop offset="100%" stop-color="#D5E6FF" />
		</linearGradient>

		<radialGradient id="Gradient_8" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="137.70000000000005" fx="0" fy="0" gradientTransform="matrix( 0.9999999999999997, 0, 0, 0.9999999999999997, 76.45,-43.95) " spreadMethod="pad">
			<stop offset="0%" stop-color="#A8D4F1" />

			<stop offset="100%" stop-color="#57A0DE" />
		</radialGradient>

		<radialGradient id="Gradient_9" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="77.75" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, 26.6,-22.8) " spreadMethod="pad">
			<stop offset="0%" stop-color="#FFF774" />

			<stop offset="100%" stop-color="#FFCC00" />
		</radialGradient>

		<radialGradient id="Gradient_10" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="51.1" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, -19.85,10.05) " spreadMethod="pad">
			<stop offset="0%" stop-color="#FFF774" />

			<stop offset="100%" stop-color="#FFCC00" />
		</radialGradient>

		<radialGradient id="Gradient_11" gradientUnits="userSpaceOnUse" cx="0" cy="0" r="10.5" fx="0" fy="0" gradientTransform="matrix( 1, 0, 0, 1, 0.15,-1.95) " spreadMethod="pad">
			<stop offset="0%" stop-color="#FFF774" />

			<stop offset="100%" stop-color="#FFCC00" />
		</radialGradient>

		<g id="Symbol_1_0_Layer0_0_FILL">
			<path fill="url(#Gradient_1)" stroke="none" d="
M -0.05 -209.05
Q -86.6 -209.05 -147.85 -147.8 -209.05 -86.55 -209.05 0 -209.05 86.6 -147.85 147.8 -86.6 209.05 -0.05 209.05 86.55 209.05 147.8 147.8 209.05 86.6 209.05 0 209.05 -86.55 147.8 -147.8 86.55 -209.05 -0.05 -209.05 Z" />
		</g>

		<g id="confetti_0_Layer0_0_FILL">
			<path fill="#F0A8F9" stroke="none" d="
M -0.45 -11.9
Q -0.45 -12.35 -0.4 -12.8
L -12.35 -12.8
Q -12.4 -12.4 -12.4 -11.95 -12.4 -1.7 -5.15 5.55 2.15 12.85 12.4 12.85
L 12.45 12.85 12.45 0.95
Q 7.1 0.95 3.3 -2.8 -0.45 -6.6 -0.45 -11.9 Z" />
		</g>

		<g id="star_0_Layer0_0_FILL">
			<path fill="#C30DDB" stroke="none" d="
M -6.65 -13.25
L -22.3 -14.5 -16.3 0.05 -22.3 14.55 -6.65 13.3 5.3 23.5 9 8.25 22.35 0.05 9 -8.2 5.3 -23.45 -6.65 -13.25 Z" />
		</g>

		<g id="base_0_Layer0_0_FILL">
			<path fill="url(#Gradient_2)" stroke="none" d="
M 94.8 -17.5
Q 46.3 -42.45 40.4 -70.4
L -40.9 -70.4
Q -55.9 -29.8 -94 -17.45
L 94.8 -17.5 Z" />

			<path fill="url(#Gradient_3)" stroke="none" d="
M 40.8 -87.9
Q 34.6 -101.15 40.4 -114.4
L -40.9 -114.4
Q -35.65 -102.7 -40 -87.85
L 40.8 -87.9 Z" />

			<path fill="#5599FF" stroke="none" d="
M 100.75 -2.6
Q 103.35 -5.15 103.35 -8.75 103.35 -12.35 100.75 -14.95 98.45 -17.25 95.3 -17.45 95.05 -17.5 94.8 -17.5
L -94 -17.45
Q -94.3 -17.5 -94.6 -17.5 -98.2 -17.5 -100.8 -14.95 -103.35 -12.35 -103.35 -8.75 -103.35 -5.15 -100.8 -2.6 -98.4 -0.2 -95.2 0 -95.05 0 -94.9 0
L 94.4 0
Q 94.5 0 94.6 0 98.2 0 100.75 -2.6
M 40.6 -70.4
Q 44.2 -70.4 46.75 -73 49.35 -75.55 49.35 -79.15 49.35 -82.75 46.75 -85.35 44.45 -87.65 41.3 -87.85 41.05 -87.9 40.8 -87.9
L -40 -87.85
Q -40.3 -87.9 -40.6 -87.9 -44.2 -87.9 -46.8 -85.35 -49.35 -82.75 -49.35 -79.15 -49.35 -75.55 -46.8 -73 -44.4 -70.6 -41.2 -70.4 -41.05 -70.4 -40.9 -70.4
L 40.4 -70.4
Q 40.5 -70.4 40.6 -70.4
M 40.6 -114.4
Q 44.2 -114.4 46.75 -117 49.35 -119.55 49.35 -123.15 49.35 -126.75 46.75 -129.35 44.45 -131.65 41.3 -131.85 41.05 -131.9 29.55 -131.9
L -30.35 -131.9
Q -40.3 -131.9 -40.6 -131.9 -44.2 -131.9 -46.8 -129.35 -49.35 -126.75 -49.35 -123.15 -49.35 -119.55 -46.8 -117 -44.4 -114.6 -41.2 -114.4 -41.05 -114.4 -40.9 -114.4
L 40.4 -114.4
Q 40.5 -114.4 40.6 -114.4 Z" />

			<path fill="url(#Gradient_4)" stroke="none" d="
M 24.8 -171.4
Q 12.95 -168.85 0 -168.85 -12.5 -168.85 -24 -171.2 -21.4 -150 -30.35 -131.9
L 29.55 -131.9
Q 23.3 -146.9 24.8 -171.4 Z" />
		</g>

		<g id="handleL_0_Layer0_0_FILL">
			<path fill="url(#Gradient_5)" stroke="none" d="
M -24.6 -65.55
L -24.55 -65.55
Q -17.3 -63.05 -9.65 -59.3 -7.8 -58.4 -5.85 -59.05 -3.9 -59.75 -3 -61.6 -2.05 -63.45 -2.75 -65.4 -3.4 -67.4 -5.25 -68.3 -13.5 -72.35 -21.25 -75 -62.5 -89.6 -74.1 -64.25 -81.45 -49.35 -75.2 -34.25
L -75.2 -34.3
Q -70.9 -23.7 -56.95 -8.9 -56.85 -8.85 -56.85 -8.8 -40.7 7.2 -32.8 16.05 -19.35 30.95 -13.65 44.25 -6.15 61.85 -16.5 67.8 -22.75 70.9 -30.6 70.25 -32.65 70.05 -34.25 71.4 -35.8 72.7 -36 74.8 -36.15 76.85 -34.85 78.45 -33.5 80 -31.45 80.2 -20.65 81.1 -12 76.75
L -12.05 76.75
Q 7.3 67.9 -4.45 40.35 -10.65 25.75 -25.35 9.35 -33.4 0.4 -49.8 -15.9
L -49.7 -15.75
Q -62 -28.8 -65.95 -38.1 -70.45 -49.05 -65.15 -59.8 -55.9 -76.65 -24.6 -65.55 Z" />
		</g>

		<g id="ribbonBack_0_Layer0_0_FILL">
			<path fill="#5599FF" stroke="none" d="
M -40.05 7.15
L -40.05 7.2 -33.15 7.2 -48.1 -6.4 -40.05 7.15 Z" />

			<path fill="#0066FF" stroke="none" d="
M 24.95 7.15
L 48.15 7.15 32.8 -7.15 24.95 7.15 Z" />
		</g>

		<g id="cup_0_Layer0_0_FILL">
			<path fill="url(#Gradient_6)" stroke="none" d="
M 40.8 -7.3
Q 61.9 -15.5 79.2 -32.8 109.45 -63.05 111.8 -104.9
L 111.8 -249.35 -111.95 -249.35 -111.95 -115.6
Q -111.95 -115.4 -111.95 -115.2 -112 -113.6 -112 -112 -112 -65.6 -79.2 -32.8 -61.55 -15.15 -40 -7 -32.25 -4.1 -24 -2.35 -12.5 0 0 0 12.95 0 24.8 -2.55 33.05 -4.3 40.8 -7.3 Z" />

			<path fill="url(#Gradient_7)" stroke="none" d="
M 122.3 -249.35
Q 122.4 -249.35 122.5 -249.35 126.1 -249.35 128.65 -251.95 131.25 -254.5 131.25 -258.1 131.25 -261.7 128.65 -264.3 126.35 -266.6 123.2 -266.8 122.95 -266.85 122.7 -266.85
L -121.9 -266.8
Q -122.2 -266.85 -122.5 -266.85 -126.1 -266.85 -128.7 -264.3 -131.25 -261.7 -131.25 -258.1 -131.25 -254.5 -128.7 -251.95 -126.3 -249.55 -123.1 -249.35 -122.95 -249.35 -122.8 -249.35
L -111.95 -249.35 111.8 -249.35 122.3 -249.35 Z" />
		</g>

		<g id="handleR_0_Layer0_0_FILL">
			<path fill="url(#Gradient_8)" stroke="none" d="
M 24.55 -65.55
L 24.6 -65.55
Q 55.9 -76.65 65.15 -59.8 70.45 -49.05 65.95 -38.1 62 -28.8 49.7 -15.75
L 49.8 -15.9
Q 33.4 0.4 25.35 9.35 10.65 25.75 4.45 40.35 -7.3 67.9 12.05 76.75
L 12 76.75
Q 20.65 81.1 31.45 80.2 33.5 80 34.85 78.45 36.15 76.85 36 74.8 35.8 72.7 34.25 71.4 32.65 70.05 30.6 70.25 22.75 70.9 16.5 67.8 6.15 61.85 13.65 44.25 19.35 30.95 32.8 16.05 40.7 7.2 56.85 -8.8 56.85 -8.85 56.95 -8.9 70.9 -23.7 75.2 -34.3
L 75.2 -34.25
Q 81.45 -49.35 74.1 -64.25 62.5 -89.6 21.25 -75 13.5 -72.35 5.25 -68.3 3.4 -67.4 2.75 -65.4 2.05 -63.45 3 -61.6 3.9 -59.75 5.85 -59.05 7.8 -58.4 9.65 -59.3 17.3 -63.05 24.55 -65.55 Z" />
		</g>

		<g id="coin_0_Layer1_0_FILL">
			<path fill="#FFCD03" stroke="none" d="
M -25.85 -52.85
L -33.25 -65.8
Q -38.95 -65.55 -38.85 -59.7
L -38.85 -17.25
Q -35.75 -24.15 -30 -29.95 -29.65 -30.3 -29.3 -30.6 -28.6 -31.3 -27.9 -31.9 -26.9 -32.8 -25.85 -33.6
L -25.85 -52.85
M 18 -65.85
L 24.95 -52.85 24.95 -34.3
Q 27.55 -32.35 29.95 -29.95 34.95 -24.95 37.95 -19.1
L 37.95 -61.5
Q 37.7 -65.6 33.6 -65.85
L 30.15 -65.85 18 -65.85 Z" />

			<path fill="#0066FF" stroke="none" d="
M 24.95 -52.85
L 18 -65.85 -3.25 -105.55 -12.35 -122.5 -12.35 -122.55 -20.4 -136.1 -72.7 -136.1 -65.6 -122.5 -33.25 -65.8 -25.85 -52.85 24.95 -52.85 Z" />

			<path fill="#5599FF" stroke="none" d="
M 52.65 -122.55
L 60.5 -136.85 10.55 -136.85 -3.25 -105.55 18 -65.85 30.15 -65.85 52.65 -122.55 Z" />
		</g>

		<g id="coin_0_Layer0_0_FILL">
			<path fill="url(#Gradient_9)" stroke="none" d="
M 37.95 -19.15
Q 34.95 -25 29.95 -30 27.55 -32.4 24.95 -34.35 15.7 -41.2 4 -42.2 2.05 -42.4 0 -42.4 -12.3 -42.4 -22.1 -36.25 -24 -35.1 -25.85 -33.65 -26.9 -32.85 -27.9 -31.95 -28.6 -31.35 -29.3 -30.65 -29.65 -30.35 -30 -30 -35.75 -24.2 -38.85 -17.3 -42.4 -9.4 -42.4 0 -42.4 17.55 -30 29.95 -17.55 42.4 0 42.4 2.05 42.4 4 42.25 19 40.95 29.95 29.95 42.4 17.55 42.4 0 42.4 -10.5 37.95 -19.15
M 2.7 -28.35
Q 12.8 -27.5 20.15 -20.15 28.55 -11.8 28.55 0 28.55 11.8 20.15 20.15 12.8 27.55 2.7 28.45 1.4 28.55 0 28.55 -11.8 28.55 -20.15 20.15 -21.2 19.1 -22.1 18.05 -26.55 12.7 -27.9 6.1 -28.5 3.15 -28.5 0 -28.5 -3.15 -27.9 -6.05 -26.55 -12.7 -22.1 -18 -21.2 -19.1 -20.15 -20.15 -11.8 -28.5 0 -28.5 1.4 -28.5 2.7 -28.35 Z" />

			<path fill="url(#Gradient_10)" stroke="none" d="
M 20.15 -20.15
Q 12.8 -27.5 2.7 -28.35 1.4 -28.5 0 -28.5 -11.8 -28.5 -20.15 -20.15 -21.2 -19.1 -22.1 -18 -26.55 -12.7 -27.9 -6.05 -28.5 -3.15 -28.5 0 -28.5 3.15 -27.9 6.1 -26.55 12.7 -22.1 18.05 -21.2 19.1 -20.15 20.15 -11.8 28.55 0 28.55 1.4 28.55 2.7 28.45 12.8 27.55 20.15 20.15 28.55 11.8 28.55 0 28.55 -11.8 20.15 -20.15
M -3.4 -18.05
L -3.05 -19.05 3.25 -19.05 15.25 14.35 13.9 14.35 9.45 14.35 7.05 7.55 -6.9 7.55 -7.25 8.55 -9.3 14.35 -9.95 14.35 -15 14.35 -3.4 -18.05 Z" />

			<path fill="#FFCE05" stroke="none" d="
M -7.25 8.55
L -7.9 8.55 -9.95 14.35 -9.3 14.35 -7.25 8.55 Z" />

			<path fill="#FFF570" stroke="none" d="
M -7.25 8.55
L -6.9 7.55 7.05 7.55 9.45 14.35 13.9 14.35 2.25 -18.05 -3.4 -18.05 -15 14.35 -9.95 14.35 -7.9 8.55 -7.25 8.55
M -0.9 -11.45
L -0.55 -10.5 0.1 -12.45 5.5 3.1 4.15 3.1 4.5 4.1 -6.4 4.1 -0.9 -11.45 Z" />

			<path fill="url(#Gradient_11)" stroke="none" d="
M 4.15 3.1
L 5.5 3.1 0.1 -12.45 -0.55 -10.5 -5.4 3.1 4.15 3.1 Z" />

			<path fill="#FFCD03" stroke="none" d="
M -0.55 -10.5
L -0.9 -11.45 -6.4 4.1 4.5 4.1 4.15 3.1 -5.4 3.1 -0.55 -10.5
M -3.05 -19.05
L -3.4 -18.05 2.25 -18.05 13.9 14.35 15.25 14.35 3.25 -19.05 -3.05 -19.05 Z" />
		</g>
	</defs>

	<g id="shadow" transform="matrix( 1, 0, 0, 1, 250,742.25) ">
		<g transform="matrix( 1, 0, 0, 0.1714935302734375, 0.1,0.05) ">
			<g transform="matrix( 1, 0, 0, 1, 0,0) ">
				<use xlink:href="#Symbol_1_0_Layer0_0_FILL" />
			</g>
		</g>
	</g>

	<g id="confetti1" transform="matrix( 0.258819580078125, 0.965911865234375, -0.965911865234375, 0.258819580078125, 179.6,389.35) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti2" transform="matrix( 1, 0, 0, 1, 210.4,392.1) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti3" transform="matrix( 0.86602783203125, 0.4999847412109375, -0.4999847412109375, 0.86602783203125, 192.1,376.55) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti4" transform="matrix( 0.258819580078125, 0.965911865234375, -0.965911865234375, 0.258819580078125, 216.25,373.3) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti5" transform="matrix( 0.86602783203125, -0.4999847412109375, 0.4999847412109375, 0.86602783203125, 207.45,416.7) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti6" transform="matrix( 0.70709228515625, -0.70709228515625, 0.70709228515625, 0.70709228515625, 273.15,383.75) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti7" transform="matrix( 0.5, -0.8660125732421875, 0.8660125732421875, 0.5, 335.9,408.9) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti8" transform="matrix( 0.70709228515625, -0.70709228515625, 0.70709228515625, 0.70709228515625, 176.15,423.05) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti9" transform="matrix( 0.258819580078125, -0.965911865234375, 0.965911865234375, 0.258819580078125, 317.85,429.15) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti10" transform="matrix( 0, 1, -1, 0, 248.45,409.15) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="confetti11" transform="matrix( -0.9659271240234375, 0.2587890625, -0.2587890625, -0.9659271240234375, 236,421.95) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#confetti_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="star2" transform="matrix( 0.5, -0.8660125732421875, 0.8660125732421875, 0.5, 210.4,404.9) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#star_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="star3" transform="matrix( 0.7775726318359375, -0.6287841796875, 0.6287841796875, 0.7775726318359375, 266.1,374.05) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#star_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="star1" transform="matrix( 0.6024169921875, 0.79815673828125, -0.79815673828125, 0.6024169921875, 296,429.35) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#star_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="base" transform="matrix( 1, 0, 0, 1, 250,747.2) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#base_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="handleL" transform="matrix( 1, 0, 0, 1, 147.35,429.3) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#handleL_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="medalBack" transform="matrix( 1, 0, 0, 1, 307.85,317.15) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#ribbonBack_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="cup" transform="matrix( 1, 0, 0, 1, 250,578.35) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#cup_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="handleR" transform="matrix( 1, 0, 0, 1, 348.4,430.85) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#handleR_0_Layer0_0_FILL" />
		</g>
	</g>

	<g id="medal" transform="matrix( 1, 0, 0, 1, 280.15,446.9) ">
		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#coin_0_Layer1_0_FILL" />
		</g>

		<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#coin_0_Layer0_0_FILL" />
		</g>
	</g>
</svg>

3. Create a new CSS file named styles.css. Add CSS rules to style the different parts of the trophy, including their size, position, and appearance.

Add animation effects to make the trophy appear as if it’s rotating or sparkling. You can use CSS keyframes for animations.

@keyframes confetti9 {
  0% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 317.85, 429.15);
    animation-timing-function: ease-in;
  }
  21.008403361344538% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 250, 429.15);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  42.857142857142854% {
    transform: matrix(-0.9999694824, 0, 0, -0.9999694824, 351.4, 136.85);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  61.34453781512605% {
    transform: matrix(0.0000152588, 0.9999237061, -0.9999237061, 0.0000152588, 394.55, 354.55);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.0000152588, 0.9999237061, -0.9999237061, 0.0000152588, 394.55, 354.55);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti6 {
  0% {
    transform: matrix(0.7070922852, -0.7070922852, 0.7070922852, 0.7070922852, 273.15, 383.75);
    animation-timing-function: ease-in;
  }
  21.008403361344538% {
    transform: matrix(0.7070922852, -0.7070922852, 0.7070922852, 0.7070922852, 249.95, 383.75);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  42.857142857142854% {
    transform: matrix(-0.9658813477, -0.2587890625, 0.2587890625, -0.9658813477, 273.25, 62.2);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  63.02521008403361% {
    transform: matrix(0.2588195801, 0.9658813477, -0.9658813477, 0.2588195801, 322.1, 227.75);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.2588195801, 0.9658813477, -0.9658813477, 0.2588195801, 322.1, 227.75);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti11 {
  0% {
    transform: matrix(-0.965927124, 0.2587890625, -0.2587890625, -0.965927124, 236, 421.95);
    animation-timing-function: ease-in;
  }
  21.008403361344538% {
    transform: matrix(-0.965927124, 0.2587890625, -0.2587890625, -0.965927124, 250.05, 421.95);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  42.016806722689076% {
    transform: matrix(-0.4999847412, 0.8659667969, -0.8659667969, -0.4999847412, 278.8, 164.8);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  58.82352941176471% {
    transform: matrix(-0.9658508301, 0.2587890625, -0.2587890625, -0.9658508301, 310.45, 303.4);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(-0.9658508301, 0.2587890625, -0.2587890625, -0.9658508301, 310.45, 303.4);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes cup {
  0% {
    transform: matrix(1, 0, 0, 1, 250, 578.35);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 1, 250, 609.2);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 1, 250, 609.2);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 250, 563.5);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(1, 0, 0, 1, 250, 495);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(1, 0, 0, 1, 250, 495);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 250, 563.5);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 1, 250, 609.2);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 250, 578.35);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 250, 578.35);
    animation-timing-function: linear;
  }
}
@keyframes shadow {
  0% {
    transform: matrix(1, 0, 0, 1, 250, 742.25);
    opacity: 1;
    animation-timing-function: linear;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 250, 742.25);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(0.6494445801, 0, 0, 0.6494445801, 250, 742.25);
    opacity: 0.46875;
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(0.6494445801, 0, 0, 0.6494445801, 250, 742.25);
    opacity: 0.46875;
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 250, 742.25);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 250, 742.25);
    opacity: 1;
    animation-timing-function: linear;
  }
}
@keyframes confetti2 {
  0% {
    transform: matrix(1, 0, 0, 1, 210.4, 392.1);
    animation-timing-function: ease-in;
  }
  21.84873949579832% {
    transform: matrix(1, 0, 0, 1, 250, 392.1);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  43.69747899159664% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 190.3, 141.5);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  65.54621848739495% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 192.5, 291);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 192.5, 291);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes handleL {
  0% {
    transform: matrix(1, 0, 0, 1, 147.35, 429.3);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 1, 147.35, 460.15);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 1, 147.35, 460.15);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 147.35, 414.45);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(0.7661743164, 0, 0, 1, 158.85, 345.95);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(0.7661743164, 0, 0, 1, 158.85, 345.95);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 147.35, 414.45);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 1, 147.35, 460.15);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 147.35, 429.3);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 147.35, 429.3);
    animation-timing-function: linear;
  }
}
@keyframes confetti7 {
  0% {
    transform: matrix(0.5, -0.8660125732, 0.8660125732, 0.5, 335.9, 408.9);
    animation-timing-function: ease-in;
  }
  22.689075630252102% {
    transform: matrix(0.5, -0.8660125732, 0.8660125732, 0.5, 249.95, 408.9);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  46.21848739495798% {
    transform: matrix(-0.8660125732, -0.5, 0.5, -0.8660125732, 380.55, 80.75);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  67.22689075630252% {
    transform: matrix(-0.2587890625, 0.9658813477, -0.9658813477, -0.2587890625, 442.5, 257.05);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(-0.2587890625, 0.9658813477, -0.9658813477, -0.2587890625, 442.5, 257.05);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes star1 {
  0% {
    transform: matrix(0.6024169922, 0.7981567383, -0.7981567383, 0.6024169922, 296, 429.35);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  19.327731092436977% {
    transform: matrix(0.6024169922, 0.7981567383, -0.7981567383, 0.6024169922, 286, 429.35);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  42.857142857142854% {
    transform: matrix(-0.712677002, 0.7014160156, -0.7014160156, -0.712677002, 292.5, 104.15);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  64.70588235294117% {
    transform: matrix(-0.7884521484, -0.6150512695, 0.6150512695, -0.7884521484, 300.3, 344.2);
    opacity: 0;
    animation-timing-function: linear;
  }
  100% {
    transform: matrix(-0.7884521484, -0.6150512695, 0.6150512695, -0.7884521484, 300.3, 344.2);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti3 {
  0% {
    transform: matrix(0.866027832, 0.4999847412, -0.4999847412, 0.866027832, 192.1, 376.55);
    animation-timing-function: ease-in;
  }
  21.008403361344538% {
    transform: matrix(0.866027832, 0.4999847412, -0.4999847412, 0.866027832, 250, 376.55);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  43.69747899159664% {
    transform: matrix(-0.9658813477, 0.2587890625, -0.2587890625, -0.9658813477, 119.85, 46.45);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  63.86554621848739% {
    transform: matrix(0.2587890625, -0.9658813477, 0.9658813477, 0.2587890625, 64.4, 210.5);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.2587890625, -0.9658813477, 0.9658813477, 0.2587890625, 64.4, 210.5);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti1 {
  0% {
    transform: matrix(0.2588195801, 0.9659118652, -0.9659118652, 0.2588195801, 179.6, 389.35);
    animation-timing-function: ease-in;
  }
  21.008403361344538% {
    transform: matrix(0.2588195801, 0.9659118652, -0.9659118652, 0.2588195801, 250.05, 389.35);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  42.857142857142854% {
    transform: matrix(-0.2587890625, 0.9659118652, -0.9659118652, -0.2587890625, 159.45, 71.2);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  67.22689075630252% {
    transform: matrix(0.9659118652, 0.2587890625, -0.2587890625, 0.9659118652, 145.7, 200.85);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.9659118652, 0.2587890625, -0.2587890625, 0.9659118652, 145.7, 200.85);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti8 {
  0% {
    transform: matrix(0.7070922852, -0.7070922852, 0.7070922852, 0.7070922852, 176.15, 423.05);
    animation-timing-function: ease-in;
  }
  21.84873949579832% {
    transform: matrix(0.7070922852, -0.7070922852, 0.7070922852, 0.7070922852, 249.95, 423.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  44.537815126050425% {
    transform: matrix(0, -0.9999694824, 0.9999694824, 0, 123.05, 130.6);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  63.02521008403361% {
    transform: matrix(0.9658660889, 0.2587738037, -0.2587738037, 0.9658660889, 96.7, 292.15);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.9658660889, 0.2587738037, -0.2587738037, 0.9658660889, 96.7, 292.15);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes star2 {
  0% {
    transform: matrix(0.5, -0.8660125732, 0.8660125732, 0.5, 210.4, 404.9);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  23.52941176470588% {
    transform: matrix(0.5, -0.8660125732, 0.8660125732, 0.5, 210.4, 392.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  44.537815126050425% {
    transform: matrix(-0.4999389648, 0.8659362793, -0.8659362793, -0.4999389648, 161.8, 152.8);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  61.34453781512605% {
    transform: matrix(-0.4999389648, -0.8659667969, 0.8659667969, -0.4999389648, 135.2, 395.15);
    opacity: 0;
    animation-timing-function: linear;
  }
  100% {
    transform: matrix(-0.4999389648, -0.8659667969, 0.8659667969, -0.4999389648, 135.2, 395.15);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes handleR {
  0% {
    transform: matrix(1, 0, 0, 1, 348.4, 430.85);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 1, 348.4, 461.7);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 1, 348.4, 461.7);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 348.4, 416);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(0.8685302734, 0, 0, 1, 336.9, 347.5);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(0.8685302734, 0, 0, 1, 336.9, 347.5);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 348.4, 416);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 1, 348.4, 461.7);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 348.4, 430.85);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 348.4, 430.85);
    animation-timing-function: linear;
  }
}
@keyframes confetti10 {
  0% {
    transform: matrix(0, 1, -1, 0, 248.45, 409.15);
    animation-timing-function: ease-in;
  }
  27.73109243697479% {
    transform: matrix(0, 1, -1, 0, 250.05, 409.15);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  48.739495798319325% {
    transform: matrix(1, 0, 0, 1, 248.45, 116.65);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  63.86554621848739% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 248.45, 238.05);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.2588195801, -0.9659118652, 0.9659118652, 0.2588195801, 248.45, 238.05);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes star3 {
  0% {
    transform: matrix(0.7775726318, -0.6287841797, 0.6287841797, 0.7775726318, 266.1, 374.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  30.252100840336134% {
    transform: matrix(0.7775726318, -0.6287841797, 0.6287841797, 0.7775726318, 266.1, 374.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  49.57983193277311% {
    transform: matrix(0.7248535156, 0.6888275146, -0.6888275146, 0.7248535156, 361.8, 151.7);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  67.22689075630252% {
    transform: matrix(-0.5883178711, 0.80859375, -0.80859375, -0.5883178711, 413.4, 412.4);
    opacity: 0;
    animation-timing-function: linear;
  }
  100% {
    transform: matrix(-0.5883178711, 0.80859375, -0.80859375, -0.5883178711, 413.4, 412.4);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes confetti4 {
  0% {
    transform: matrix(0.2588195801, 0.9659118652, -0.9659118652, 0.2588195801, 216.25, 373.3);
    animation-timing-function: ease-in;
  }
  28.57142857142857% {
    transform: matrix(0.2588195801, 0.9659118652, -0.9659118652, 0.2588195801, 250.05, 373.3);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  49.57983193277311% {
    transform: matrix(-0.9658660889, 0.2587890625, -0.2587890625, -0.9658660889, 216.5, 54.4);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  70.58823529411765% {
    transform: matrix(0.4999389648, -0.8659667969, 0.8659667969, 0.4999389648, 202.55, 204.95);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(0.4999389648, -0.8659667969, 0.8659667969, 0.4999389648, 202.55, 204.95);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes medal {
  0% {
    transform: matrix(1, 0, 0, 1, 280.15, 446.9);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 1, 280.15, 477.75);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 1, 280.15, 477.75);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 280.15, 432.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(1, 0, 0, 1, 249.15, 349.75);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(1, 0, 0, 1, 249.15, 349.75);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 280.15, 432.05);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 1, 280.15, 477.75);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 280.15, 446.9);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 280.15, 446.9);
    animation-timing-function: linear;
  }
}
@keyframes base {
  0% {
    transform: matrix(1, 0, 0, 1, 250, 747.2);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 0.8267211914, 250, 747.2);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 0.8267211914, 250, 747.2);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1.092956543, 250, 747.2);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(0.8340454102, 0, 0, 1.092956543, 250, 678.7);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(0.8340454102, 0, 0, 1.092956543, 250, 678.7);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1.092956543, 250, 747.2);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 0.8267211914, 250, 747.2);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 250, 747.2);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 250, 747.2);
    animation-timing-function: linear;
  }
}
@keyframes confetti5 {
  0% {
    transform: matrix(0.866027832, -0.4999847412, 0.4999847412, 0.866027832, 207.45, 416.7);
    animation-timing-function: ease-in;
  }
  22.689075630252102% {
    transform: matrix(0.866027832, -0.4999847412, 0.4999847412, 0.866027832, 250, 416.7);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  44.537815126050425% {
    transform: matrix(0.7070770264, 0.7070922852, -0.7070922852, 0.7070770264, 348.55, 49.15);
    opacity: 1;
    animation-timing-function: ease-in;
  }
  65.54621848739495% {
    transform: matrix(-0.9658508301, 0.2588195801, -0.2588195801, -0.9658508301, 417.15, 198.9);
    opacity: 0;
    animation-timing-function: ease-out;
  }
  100% {
    transform: matrix(-0.9658508301, 0.2588195801, -0.2588195801, -0.9658508301, 417.15, 198.9);
    opacity: 0;
    animation-timing-function: ease-out;
  }
}
@keyframes medalBack {
  0% {
    transform: matrix(1, 0, 0, 1, 307.85, 317.15);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  10.084033613445378% {
    transform: matrix(1, 0, 0, 1, 307.85, 348);
    animation-timing-function: ease-in;
  }
  13.445378151260504% {
    transform: matrix(1, 0, 0, 1, 307.85, 348);
    animation-timing-function: ease-in;
  }
  18.487394957983195% {
    transform: matrix(1, 0, 0, 1, 307.85, 302.3);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  28.57142857142857% {
    transform: matrix(1, 0, 0, 1, 276.85, 220);
    animation-timing-function: ease-in;
  }
  36.134453781512605% {
    transform: matrix(1, 0, 0, 1, 276.85, 220);
    animation-timing-function: ease-in;
  }
  45.378151260504204% {
    transform: matrix(1, 0, 0, 1, 307.85, 302.3);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  51.26050420168067% {
    transform: matrix(1, 0, 0, 1, 307.85, 348);
    animation-timing-function: ease-in;
  }
  59.66386554621849% {
    transform: matrix(1, 0, 0, 1, 307.85, 317.15);
    animation-timing-function: cubic-bezier(0.17, 0.76, 0.44, 0.97);
  }
  100% {
    transform: matrix(1, 0, 0, 1, 307.85, 317.15);
    animation-timing-function: linear;
  }
}
#confetti9 {
  animation: confetti9 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti6 {
  animation: confetti6 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti11 {
  animation: confetti11 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti2 {
  animation: confetti2 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti7 {
  animation: confetti7 1.9833333333s infinite;
  animation-delay: 0s;
}

#star1 {
  animation: star1 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti3 {
  animation: confetti3 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti1 {
  animation: confetti1 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti8 {
  animation: confetti8 1.9833333333s infinite;
  animation-delay: 0s;
}

#star2 {
  animation: star2 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti10 {
  animation: confetti10 1.9833333333s infinite;
  animation-delay: 0s;
}

#star3 {
  animation: star3 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti4 {
  animation: confetti4 1.9833333333s infinite;
  animation-delay: 0s;
}

#confetti5 {
  animation: confetti5 1.9833333333s infinite;
  animation-delay: 0s;
}

#shadow {
  animation: shadow 1.9833333333s infinite;
  animation-delay: 0s;
}

#cup {
  animation: cup 1.9833333333s infinite;
  animation-delay: 0s;
}

#handleL {
  animation: handleL 1.9833333333s infinite;
  animation-delay: 0s;
}

#handleR {
  animation: handleR 1.9833333333s infinite;
  animation-delay: 0s;
}

#medal {
  animation: medal 1.9833333333s infinite;
  animation-delay: 0s;
}

#base {
  animation: base 1.9833333333s infinite;
  animation-delay: 0s;
}

#medalBack {
  animation: medalBack 1.9833333333s infinite;
  animation-delay: 0s;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #eed !important;
}

svg {
  width: 250px;
  height: auto;
}

That’s all! hopefully, you have successfully created Trophy Animation on your website. If you have any questions or suggestions, feel free to comment below.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...

Please Rel0ad/PressF5 this page if you can't click the download/preview link

X