Paddle

Developer
Size
3,391 Kb
Views
6,072

How do I make an paddle?

What is a paddle? How do you make a paddle? This script and codes were developed by Nick Walsh on 14 January 2023, Saturday.

Paddle Previews

Paddle - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Paddle</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg width="800px" height="600px" viewBox="0 0 800 600" style="enable-background:new 0 0 800 600;" xml:space="preserve"> <g class="paddle"> <path d="M521.6,292.6l0.3-71.7c0-0.5,0-0.9,0-1.4c0,0,0,0,0-0.1c0-0.3,0-0.5,0-0.8c0.2-67.1-54.2-121.9-121.3-122.2 c-67.1-0.2-121.9,54.2-122.2,121.3c0,0.2,0,0.4,0,0.6l-0.3,73.4c-0.1,29.4,14.5,56.4,39.2,72.4c0.2,0.1,0.4,0.3,0.7,0.4 c2.3,1.2,5.2,2.6,8.5,4.2c8.9,4.3,28.9,13.9,34.5,19.6l-5.8,106.9c-0.1,2.1,0.6,4.1,2.1,5.7c1,1,2.2,1.8,3.6,2.1 c0.6,0.2,1.3,0.3,2,0.3l72.4,0.3c2.1,0,4.1-0.8,5.6-2.4c1.5-1.5,2.2-3.6,2.1-5.7l-5-106.8c3.9-4.4,17.4-11.9,40.4-22.4l3-1.4 c0.3-0.2,0.7-0.3,1-0.5C506.8,348.5,521.5,321.7,521.6,292.6z M293.5,291.8l0.3-71.7l0-2.3c0-0.2,0-0.4,0-0.7 c0.6-58.4,48.3-105.6,106.8-105.3c58.4,0.2,105.7,47.6,106,105.9c0,0.3-0.1,0.6-0.1,0.9c0,0.5,0,1,0,1.5c0,0.3,0,0.6,0,0.8 l-0.3,71.7c0,11.9-3.1,23.3-8.5,33.4l-196-0.7C296.3,315.1,293.4,303.7,293.5,291.8z M333.2,354.9c-3-1.4-5.7-2.7-7.8-3.8 c-4.6-3-8.8-6.6-12.5-10.5l50.7,0.2l-1.6,29.3C354.4,365.3,344.5,360.3,333.2,354.9z M371,488l7.9-146.7l41.6,0.2l6.8,146.7 L371,488z M474.5,351.2l-2.5,1.1c-14.9,6.8-26.5,12.6-34.9,17.9l-1.4-29.2l50.7,0.2C482.9,344.9,478.9,348.3,474.5,351.2z"/> <g class="eyes"> <ellipse cx="372.9" cy="260.5" rx="8.8" ry="8.8"/> <ellipse cx="427" cy="260.7" rx="8.8" ry="8.8"/> </g> <path class="mouth" d="M399.8,304.9c10.6,0,19.3-8.5,19.3-19.2l-38.5-0.1C380.6,296.2,389.2,304.9,399.8,304.9z"/> </g> <circle cx="650" cy="425" r="30" class="ball"/>
</svg> <script src="js/index.js"></script>
</body>
</html>

Paddle - Script Codes CSS Codes

body { display: -webkit-box; display: -ms-flexbox; display: flex; height: 100vh;
}
svg { margin: auto;
}
.eyes { -webkit-animation: eyes 2s alternate infinite; animation: eyes 2s alternate infinite; -webkit-transform-origin: 400px 260px; transform-origin: 400px 260px;
}
@-webkit-keyframes eyes { 0%, 20% { -webkit-transform: scale(1, 1); transform: scale(1, 1); } 10% { -webkit-transform: scale(1, 0.33); transform: scale(1, 0.33); }
}
@keyframes eyes { 0%, 20% { -webkit-transform: scale(1, 1); transform: scale(1, 1); } 10% { -webkit-transform: scale(1, 0.33); transform: scale(1, 0.33); }
}
.paddle { -webkit-animation: paddle 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; animation: paddle 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; -webkit-transform-origin: center bottom; transform-origin: center bottom;
}
@-webkit-keyframes paddle { 25% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 75% { -webkit-transform: rotate(10deg); transform: rotate(10deg); }
}
@keyframes paddle { 25% { -webkit-transform: rotate(-10deg); transform: rotate(-10deg); } 75% { -webkit-transform: rotate(10deg); transform: rotate(10deg); }
}
.ball { -webkit-animation: ball 1s alternate infinite; animation: ball 1s alternate infinite; cursor: pointer; fill: white; stroke: black; stroke-width: 14px; -webkit-transform-origin: 650px 425px; transform-origin: 650px 425px;
}
.ball:hover { stroke: navy;
}
@-webkit-keyframes ball { to { -webkit-transform: scale(1.2); transform: scale(1.2); }
}
@keyframes ball { to { -webkit-transform: scale(1.2); transform: scale(1.2); }
}
.mouth { -webkit-transition: -webkit-transform 0.2s ease; transition: -webkit-transform 0.2s ease; transition: transform 0.2s ease; transition: transform 0.2s ease, -webkit-transform 0.2s ease; -webkit-transform-origin: 400px 295px; transform-origin: 400px 295px;
}
.is-sad .ball { -webkit-animation-play-state: paused; animation-play-state: paused; stroke: blue;
}
.is-sad .mouth { -webkit-transform: rotateX(180deg); transform: rotateX(180deg);
}
.is-sad .paddle { -webkit-animation-play-state: paused; animation-play-state: paused;
}
.is-sad .paddle path, .is-sad .paddle ellipse { fill: red;
}

Paddle - Script Codes JS Codes

var ball = document.querySelector('.ball');
ball.addEventListener('click', function() { document.querySelector('svg').classList.toggle('is-sad');
});
Paddle - Script Codes
Paddle - Script Codes
Home Page Home
Developer Nick Walsh
Username nickawalsh
Uploaded January 14, 2023
Rating 3
Size 3,391 Kb
Views 6,072
Do you need developer help for Paddle?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nick Walsh (nickawalsh) Script Codes
Name
Radar
Rollins
Mapping - Final
Constellations
Animations without d3-timer
Swan
Airline Noise
Mapping - 2
Travel
Mapping - 4
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!