OsijekFrontendSVG lesson2

Developer
Size
3,708 Kb
Views
16,192

How do I make an osijekfrontendsvg lesson2?

OsijekFrontendSVG. What is a osijekfrontendsvg lesson2? How do you make a osijekfrontendsvg lesson2? This script and codes were developed by Ivan Sakoman on 12 December 2022, Monday.

OsijekFrontendSVG lesson2 Previews

OsijekFrontendSVG lesson2 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>OsijekFrontendSVG lesson2</title> <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="block"> <svg width="200px" viewBox="0 0 137.66 137.66"> <g id="circle"> <circle id="Path_1" class="head" cx="68.83" cy="68.83" r="68.83"/> </g> <path id="mouth" class="cls-2" d="M99.83,78s-6.55,9.92-31.14,9.92S37.83,78.1,37.83,78.1"/> <g id="eyes"> <g class="oko" id="Group_2"> <path id="Path_2" class="cls-3" d="M92.44,39.51c3.47-1.38,6.73.05,8.79,2.89,2.15-2.77,5.46-4.1,8.88-2.6,4.3,1.88,5.13,6.39,3.26,10.69-1.35,3.1-7.25,8.88-10.44,11.86a2.91,2.91,0,0,1-4-.07c-3.08-3.08-8.79-9-10-12.19C87.1,45.73,88.08,41.25,92.44,39.51Z"/> </g> <g class="oko" id="Group_3"> <path id="Path_3" class="cls-3" d="M27.77,39.51c3.47-1.38,6.73.05,8.79,2.89,2.15-2.77,5.46-4.1,8.88-2.6,4.3,1.88,5.13,6.39,3.26,10.69-1.35,3.1-7.25,8.88-10.44,11.86a2.91,2.91,0,0,1-4-.07c-3.08-3.08-8.79-9-10-12.19C22.43,45.73,23.41,41.25,27.77,39.51Z"/> </g> </g> </svg>
</div>
<button>klikni me!</button>
<footer>Osijek Frontend meetup</footer> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

OsijekFrontendSVG lesson2 - Script Codes CSS Codes

body { background-color: #333; font-family: 'Raleway', sans-serif; margin: 0;
}
.block { border: 1px solid #eee; padding: 10px; width: calc(100% - 25px); margin-top: 25px; text-align: left;
}
.head { fill: #ffd21f;
}
.cls-2 { fill: none; stroke: #403408; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 7px;
}
.cls-3 { fill: #ff5a58;
}
svg { animation-name: example; animation-duration: 4s; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-delay: 0; animation-direction: alternate; animation-fill-mode: backwards; animation-play-state: running;
}
svg.paused { animation-play-state: paused;
}
svg .oko { animation: oci 2s linear infinite; transform-origin: 50% 50%;
}
@keyframes example { 0% { transform: translate(0px) rotate(0); } 100% { transform: translate(628px) rotate(360deg); }
}
@keyframes oci { 0% { transform: scale(1) rotate(0); } 25% { transform: scale(2) rotate(90deg); } 50% { transform: scale(0.8) rotate(180deg); } 75% { transform: scale(1.4) rotate(270deg); } 100% { transform: scale(1) rotate(360deg); }
}
footer { position: fixed; bottom: 15px; left: 15px; color: #eee; opacity: 0.3; transition: opacity .3s ease;
}
footer:hover { animation: footer 1s ease 1; cursor: pointer; opacity: 1;
}
@keyframes footer { 0%,100% { transform: rotate(0); } 33% { transform: rotate(-10deg) scale(1.2); } 66% { transform: rotate(10deg) scale(0.8); }
}

OsijekFrontendSVG lesson2 - Script Codes JS Codes

//Funkcija za scroll event:
//-----------------------------------------------------------------------
/*
$(document).ready(function(){ var scroll = 0; var scrollDirection; $('body').on('mousewheel', function(e){ scrollDirection = e.originalEvent.wheelDelta < 0 ? 'down' : 'up'; if(scrollDirection == 'up'){ scroll -= 10; }else{ scroll += 10; } //console.log(scroll); });
});
*/
$(document).ready(function(){ $("button").click(function(){ $('svg').toggleClass('paused'); })
})
OsijekFrontendSVG lesson2 - Script Codes
OsijekFrontendSVG lesson2 - Script Codes
Home Page Home
Developer Ivan Sakoman
Username ssaakkaa
Uploaded December 12, 2022
Rating 3
Size 3,708 Kb
Views 16,192
Do you need developer help for OsijekFrontendSVG lesson2?

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!

Ivan Sakoman (ssaakkaa) Script Codes
Create amazing blog posts 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!