Create Fantastic Logo from HTML
🔄
<!DOCTYPE html>
<html lang="en">
<head>
<title>Google Chrome</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body{
font-family: 'Open Sans', sans-serif;
background-color: rgb(82, 245, 204);
}
#mySection{
position: relative;
width: 100%;
margin: auto;
}
#mySVG{
position: relative;
margin: auto;
left: calc(50% - 190px);
}
#helpText, #textGroup{
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#footer{
position: fixed;
width: 100%;
bottom:0px;
right: -0px;
height: 50px;
background-color: rgb(8, 204, 155);
box-sizing: border-box;
border-top: 5px solid rgb(245, 10, 10);
}
#profilePic{
position: absolute;
top: 10px;
width: 30px;
height: 30px;
border-radius: 50%;
left: calc(25% - 20px);
}
#theImg{
border-radius: 50%;
max-width: 30px;
}
#sig{
position: absolute;
left: calc(25% + 20px);
font-size: 13px;
letter-spacing: 0.75px;
top: calc(50% - 20px);
}
</style>
</head>
<body>
<section id="mySection">
<svg id="mySVG" width="380" height="210">
<g id="textGroup">
<text x="150" y="100" opacity="0" text-anchor="middle" dominant-baseline="middle" font-size="60" font-weight="600" fill="#77787A">chrome
<animate attributeName="opacity" values="0;1" begin="chromeAni.end-1s" dur="1s" fill="freeze"/>
</text>
<animateTransform attributeName="transform" type="translate" values="0 0;120 0;" begin="chromeAni.end-1s" dur="1s" fill="freeze">
</g>
<g id="mainGroup" onclick="startAnimation">
<path id="yellowSection" class="section" fill="#FFD200"/>
<path id="greenSection" class="section" fill="#4AB646"/>
<path id="redSection" class="section" fill="#E95145"/>
<circle id="centerCricleOuter" cx="190" cy="100" r="30" fill="#F1F1F1"/>
<circle id="centerCricle" cx="190" cy="100" r="24" fill="#2F8BDD"/>
<circle id="cover" cx="190" cy="100" r="70" fill="rgba(0,0,0,0)"></circle>
<animateTransform id="chromeAni2" attributeName="transform" type="translate" values="0 0;0 0; -110 0;" dur="4" fill="freeze" begin="indefinite"/>
<animateTransform id="chromeAni" attributeName="transform" type="rotate" values="0 190 100;1080 190 100;2520 190 100;3600 190 100;" dur="4" fill="freeze" additive="sum" begin="indefinite"/>
</g>
<text id="helpText" x="180" y="190" text-anchor="middle" dominant-baseline="middle" font-size="16" fill="red">Click the Logo above to start the animation!</text>
</svg>
</section>
<div id="footer">
<div id="profilePic">
<a href="https://www.sololearn.com/Profile/100073">
</div>
<div id="sig">
</div>
<script>
var section = document.getElementsByClassName("section");
var mainGroup = document.getElementById("mainGroup");
var helpText = document.getElementById("helpText");
mainGroup.addEventListener("click",startAnimation,false);
var result;
var smallR = 30;
var bigR = 70;
var x = 380;
var y = 200;
var angle = 120;
for(let i=0; i<section.length; i++){
result = "";
result += "M"+((x/2)+(smallR*Math.cos((-90+(i*angle))*Math.PI/180)))+","+((y/2)+(smallR*Math.sin((-90+(i*angle))*Math.PI/180)))+" ";
result += "L"+((x/2)+(bigR*Math.cos((-25+(i*angle))*Math.PI/180)))+","+((y/2)+(bigR*Math.sin((-25+(i*angle))*Math.PI/180)))+" ";
result += "A70 70 0 0 1 "+((x/2)+(bigR*Math.cos((95+(i*angle))*Math.PI/180)))+" "+((y/2)+(bigR*Math.sin((95+(i*angle))*Math.PI/180)))+" ";
result += "L"+((x/2)+(smallR*Math.cos((50+(angle*i))*Math.PI/180)))+","+((y/2)+(smallR*Math.sin((50+(angle*i))*Math.PI/180)))+" Z";
section[i].setAttribute("d",""+result);
}
function startAnimation(event){
document.getElementById("chromeAni").beginElement();
document.getElementById("chromeAni2").beginElement();
mainGroup.removeEventListener("click",startAnimation,false);
helpText.style.display = "none";
}
</script>
</body>
</html>
OUTPUT

51 Comments
Wowwww 🗣️🗣️🗣️🗣️
ReplyDeletebrilliant
ReplyDeleteawsm
ReplyDeleteeffective
ReplyDeletegreat
ReplyDeletemost important
ReplyDeleteinteresting
ReplyDeletevery nice
ReplyDelete100%
ReplyDeletevery technical
ReplyDeletesupper
ReplyDeletesuperior
ReplyDeletesuperiority
ReplyDeleteohhhmygodddd
ReplyDeleteohhhmygodddd
ReplyDeleteohhhmygoddddohhhmygodddd
ReplyDeletewonderful
ReplyDeletewonderful
ReplyDeletewonderfulwonderful
ReplyDeletegreat
ReplyDeletegreat
ReplyDeletegreat
ReplyDeletegreat
ReplyDeletesuperbbbbbbb
ReplyDeletesuperbbbbbbb
ReplyDeletesuperbbbbbbb
ReplyDeletesuperbbbbbbb
ReplyDeletesuperbbbbbbb
ReplyDeletegood
ReplyDeleteSuper👌👌👌👌👌
ReplyDelete🙌🙌🙌🙌🙌🙌
ReplyDeleteGreat
ReplyDeleteGreat
ReplyDeletegood
ReplyDelete🥇👌
ReplyDelete🥇👌
ReplyDeletevery nice
ReplyDeleteVery good
ReplyDeleteVery good
ReplyDelete👌🏻👌🏻👌🏻👌🏻👌🏻Good work 👌🏻👌🏻👌🏻👌🏻👌🏻with 👌🏻👌🏻👌🏻👌🏻👌🏻 Programming
ReplyDeleteExcellent 😘😘😘
ReplyDeleteI love it😘😘😘
ReplyDeleteGood😎😎
ReplyDeleteGreat 👌👌👌👌 done
ReplyDeleteKallu excellent
ReplyDeletefantastic
ReplyDeletefantastic
ReplyDeleteexcellent
ReplyDeleteWonderful
ReplyDeletedecently
ReplyDeleteKallu
ReplyDeleteGood