cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <svg id="merciGroup" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 731.755 563.589">
	<path id="flash" fill="#fff" d="M664.7 42v-.2c-2.2-5.2-124.8-5.6-133.8-1.3-42 20-98 152.2-122 257.3-.8 1.3-1 2.5-1 3.7C410 315 459 323 495 321.4 470.6 377.6 456 460.3 445 521l2.3.4c48-85 164.6-221 220.6-270 12.4-10.7-31.5-21.2-74.2-20.2 18-56.2 50.6-130.7 70-185.5.7-1.3 1-2.5 1-3.7z"/>
	<path id="round" fill="#C91E60" d="M519.2 180.3c10.4 1.2 17.7 10.5 16.5 20.7-1.2 10.2-10.5 17.5-20.8 16.3-10.4-1.2-17.8-10.5-16.6-20.7 1.2-10.2 10.5-17.5 20.8-16.3z"/>
	<g id="merci"><path d="M247.8 289.3c1 32 24.2 53 56.4 47.7 38-6.2 43.2-48.2 44.2-79.7 14 .3 22.2 1.7 23.4 17 .8 11.5-.4 23 0 34.5 1.6 30 31 17.3 38.8-3.5 8 15 24 21.7 40.5 22 19 .4 32.4-10 40.4-26.5 3.8 17.7 17.3 32 35.6 20.4 11-7 16.7-19 22.2-30.5L548 289c-3 6-15.7 30.4-24.5 19-7-9-4.8-25.8-4-36.3 1-12 5-23 7.3-34.6 2-10.8-25.6-12-30.7-6-3.3 4.4-2.8 14.7-3.3 20-1 11.8-2 23.7-2.5 35.6-1 19.5-22.3 39.7-42.7 31.3-21-8.8-19-37.6-14.5-55.4 1-4.3 8.5-28.7 17.4-24.4-.7 9 0 19.8 4 28 3.5 6.7 13.4 13.2 21 8.2 8.2-5.5 5.2-21 1-28-5.7-9-14.8-14.6-24.7-18-36.3-4.5-52.7 35.7-45.2 66-1.7 5-7.8 13.7-12.8 6.5-5-7.6-5-19.4-6-28-1-8-.5-17-7.2-22.7-8.2-7-22.2-1.8-32-1.5-.8-9-3-18.8-9.2-26-4-4-12.7-8.3-17.4-2.8-11.2 13 3.4 35.7 17.8 37-.3 19-1 45.4-16.4 58.8-13.8 12-35 13.3-43-5.6l4.7.7c33 0 47.2-51.2 19.2-68.5-32.4-20-57.2 18.3-56.4 46.8 1 33.8-1-34 0 0zm44.7-42.4c11 3.4 3.7 59.4-15 52.6-.4-6 1-57.4 15-52.7 7.8 2.4-6.2-2.2 0 0z"/><path d="M677.8 372.5c-7.5 11-17.4 19.4-31.3 17.5-15-2-14-20-11-31 .5-1.4 13-32.6 17.5-22 3 6.8-4.8 13-2.7 19.7 1.5 5 7.3 8.5 12.3 6.5 11.7-5 9.8-27.3 1.8-34.4-10.2-9-26.2-5.5-35.7 2.7-6 5.2-10.4 12.2-13 19.7-3 8-1.2 18.4-6 25.3-8.2 11.7-26.7 20.7-32.4 1.2 1 .3 2 .4 3 .5 22.4 0 40.5-40.2 16-49.6-29.2-11.2-46.7 32-37.2 53.8l-.4-.8c-3.5 6.2-13.2 16.3-13 3 0-7.7 2.5-15.2 3.8-23 1.4-7.6 2.8-22.5-6.7-26.2-12-4.6-20.4 12.8-24.2 21.2.2-8.5-2.3-19.5-13-18.4-10.4 1-17 17-20.4 25-.5-11.3-1-20-14-23.3-16.4-4.2-33.3-.7-49.2 3.5-36 9.5-70.2 25-105.4 37.3-32.7 11.4-66.4 12.6-78.6-26-11-34.5-5.5-74-.6-109 5-35 16-69.4 27.8-102.8l7-19.4c6.5-18.5-22.7-18.3-33.8-17.2-7.2.6-16.2 1.7-22.2 6.3-6 4.5-10 14.7-13.3 21.4-8 16.7-13.4 34.5-18.2 52.3-10 37.2-17 75.4-22.3 113.6-4.8-38.6-6.6-78-5-116.8.4-6.6 8.7-47.4 2.6-49.5-5.3-1.8-13-2-18.2-.2-1.5.5-3 1-4.2 2-.5.5-5.6 6.4-2 2.2-3.8 4.5-5 11-6.2 16.6-3 13-5 26.5-6 40-2.5 28.8-2.6 57.7-4.3 86.5-1.6 26.6-3 55-12.7 80-4 10.6-10.5 21.8-21.5 26.3-4.4 2-9.3 2.5-14 2-4-.4-17.5-4.7-17.7-4.6C50.7 387.7 70.7 396 81 395c12-1 21.2-8.4 27.4-18.2 13.5-21.4 17.4-49 20.5-73.5 4-33 5-66 6.7-99.2 2 41.6 4 85.3 12 126.2 2.2 11.2 18.7 12.4 19.7 0 1.2-12.4 4.4-24.8 7.3-37 7-29.8 15.3-59.4 25.4-88.3-8 59.3-16.3 175.5 64 190 33.3 6 66.6-9.6 97.4-20.3 18-6 35.7-12.4 54-17.5 10.6-3 38.8-13.2 48.3-3.3 4.7 4.4 1.2 19 1.2 24.8 0 8.5.5 17 2.7 25.2 1.2 4.5 7.5 6.7 12 4.4 4-2 2-14.7 2.8-19.3.8-4 9.4-37.5 13.3-32.3 3 4-.7 16-1 21-.2 7.2-.2 15.7 3.6 22.3 2.2 4 8 7.6 13 5 4.2-2.2 2.7-19.2 3.8-24 1.8-8.3 4.2-16.7 7.7-24.5 1.8-4 8.5-13.2 8-2.7-.8 13.3-5.2 28-.4 41 6.6 17.6 25.5.5 31-8.5 13.7 19.7 42 10.2 52.6-7l1 3c5.2 13.2 20.5 18 33.7 16.7 14.5-1.6 24-14 30.4-26l-1-.5zM135.8 137l1.4-1.2-1.3 1.2zm2-1.7l1.6-1-1.5 1zm2.3-1.3c.4 0 2.6-1 0 0 .4 0 .5 0 0 0zm437 227c1-7.2 3-22.4 10.8-26.3 5-2.5 5.4 8.3 5.5 10.7.3 6.7-.2 15-4.4 20.6-1.7 2.2-4 3.7-6.7 3.8-6.7.4-6.2-3.2-5.4-8.7 2.5-17.6-.5 2.6 0 0z"/></g></svg>
            
          
!
            
              html {
	height: 100%;
}
body {
	text-align: center;
	background: #FFD938;
	/*background: #18212D;*/
	vertical-align: middle;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
svg {
	max-height: 100%;
	background: 1px solid #222;
	padding: 10%;
	opacity: 0;
}

#merciGroup,
#merci,
#round {
	transform-origin: 50% 50%;
}
#flash {
	transform-origin: 0% 100%;
}

            
          
!
            
              
var merciAnimation = anime.timeline({
	loop: true 
});



merciAnimation.add([
	{ 	// merci go fram left
		targets: "#merci",
		scale: [1, 1],
		opacity: [1, 1],
		translateX: ['-200%', 0],
		delay: 500,
		duration: 400,
		easing: [0.000, 0.805, 0.625, 1.05],
	},	
	{ 	// round init 
		targets: "#round",
		opacity: ['0', '0'],
		translateY: ['12vh', '12vh'],
		translateX: ['-2vh', '-2vh'],
		scale: ['0.8', '0.8'],
		duration: 1,
		offset: '-=100',
		easing: "easeInOutBack",
	},		
	{ 	// flash fall
		targets: "#flash",
		translateY: ['-200vh', 0],
		duration: 1100,
		easing: "easeInCirc",
	},
	{ 	// flash viber
		targets: "#flash",
		rotate: ['-4deg', 0],
		duration: 1550,
		elasticity: 100000,
	},

	{ 	// round up
		targets: "#round",
		offset: '-=300',
		opacity: ['1', '1'],
		translateY: ['4vh', '-1vh'],
		translateX: ['-1vh', 0],
		scale: [1, 1],
		offset: '-=500',
		duration: 500,
		easing: [0, 0.01, 0, 8],
		elasticity: 100000,
	},
	{ 	// all growing
		targets: "#merciGroup",
		scale: [1, 5],
		opacity: [1, 0],
		delay: 800,
		duration: 200,
		easing: "easeInOutQuint",
		easing: [0.315, -0.475, 0.990, 1.005],
	},
	{ 	// loop delay
		targets: "#merciGroup",
		scale: 5,
		opacity: 0,
		duration: 700,
	},
]);


            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console