SVG Icons Template - Event
How do I make an svg icons template - event?
What is a svg icons template - event? How do you make a svg icons template - event? This script and codes were developed by Colm Hewson on 28 November 2022, Monday.
SVG Icons Template - Event - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG Icons Template - Event</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- Header -->
<div class="hello"> Routeplanner SVG Icon Template
</div>
<div class="how-are-you"> <p>Welcome to the SVG Icon Tester.</p> <p>The default size of the icon is 150px x 150px. You can scale back to 50px x 50px by using the "CHANGE SIZE" button.</p> <p>Likewise if you want to check how the logo is structured, and check alignment, use the "TOGGLE GUIDES BUTTON" to turn guides on and off. The pink guide is 50px x 50px and the blue is 150px x 150px.</p> <p>Oh, and click the icon to see the highlighted or ":active" state.</p> <p>Enjoy!</p>
</div>
<!-- Toggle Buttons -->
<div class="change-size"> Change Size
</div>
<div class="toggle-borders"> Toggle Guides
</div>
<div class="red-toggle" style="display: none;"> Red Version
</div>
<div class="orange-toggle" style="display: none;"> Orange Version
</div>
<div class="yellow-toggle" style="display: none;"> Yellow Version
</div>
<!-- Here be the container, and within that the SVG -->
<div class="container"> <div class="svg-container"> <svg class="incident-event" version="1.1" xmlns="http://www.w3.org/2000/svg" width="150" height="150"> <g id="triangle-outer"> <polyline class="incident-icon-activeline" points="5,120 75,5 145,120" /> <polygon class="incident-pointy-bit" points="55,120 95,120 75,150" /> </g> <g id="triangle-bg"> <polygon class="incident-icon-bg" points="75,10 140,120 10,120" /> </g> <g id="the-thing" transform="translate(45 57)"> <path d="M60.2,66.5a2.8,2.8,0,0,0,1.2-.3l14.9-8.8a5.2,5.2,0,0,1,5.9.2,11.6,11.6,0,0,1,4,5.1,25.5,25.5,0,0,1,2.2,8.3A30.3,30.3,0,0,1,87,84a15.3,15.3,0,0,1-3.2,5.6,6.4,6.4,0,0,1-4.4,2.3,4.5,4.5,0,0,1-2.6-.6l-15.3-9-1-.3H53.4a7.8,7.8,0,0,1-7.7-6.2,7.6,7.6,0,0,1,7.2-9.3m32.9,8.9a24.5,24.5,0,0,0-1.1-8.2,11.5,11.5,0,0,0-3.3-5.4,4.5,4.5,0,0,0-6.2,0,9.2,9.2,0,0,0-2.5,3.4,22.5,22.5,0,0,0-.5,16.9,9.9,9.9,0,0,0,3.3,4.8,4.4,4.4,0,0,0,5.8-.1,9.3,9.3,0,0,0,2.4-3A19.6,19.6,0,0,0,85.8,75.4Z" transform="translate(-45.5 -51.7)" /> <path d="M60,95c0,3-1,3-3.5,3S53,98,53,95c0-1.1,0-11,0-12h7" transform="translate(-45.5 -51.7)" /> <path d="M75,74c0-1.6,0-5,1-5s5,2,5,5a5.3,5.3,0,0,1-5,5C75,79,75,75.5,75,74Z" transform="translate(-45.5 -51.7)" /> <rect x="47" y="21.5" width="12" height="2" rx="1" ry="1" /> <rect x="90.9" y="64.6" width="12" height="2" rx="1" ry="1" transform="translate(-65.6 11.8) rotate(-33.1)" /> <rect x="90.9" y="82" width="12" height="2" rx="1" ry="1" transform="translate(13.4 -90.5) rotate(32.1)" /> <rect x="86.8" y="56" width="12" height="2" rx="1" ry="1" transform="translate(-48.5 57.2) rotate(-60)" /> <rect x="86.8" y="90.5" width="12" height="2" rx="1" ry="1" transform="translate(80.1 -86.3) rotate(60)" /> </g> <g id="triangle-outer"> <polygon class="incident-icon" points="75,5 145,120 5,120" /> <polygon class="incident-pointy-bit" points="55,120 95,120 75,150" /> </g> </svg> </div>
</div>
<!-- CSS edge borders -->
<div class="top-x-border">
</div>
<div class="bottom-x-border">
</div>
<div class="left-y-border">
</div>
<div class="right-y-border">
</div>
<div class="top-x-border-50">
</div>
<div class="bottom-x-border-50">
</div>
<div class="left-y-border-50">
</div>
<div class="right-y-border-50">
</div> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
SVG Icons Template - Event - Script Codes CSS Codes
/* Just to call Open Sans for the button */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
/* All of the structural CSS stuff here */
body { width: 100%; height: 100%; margin: 0; top: 0px; bottom: 0px; left: 0px; right: 0px; background: #f1f1f1; z-index: 0; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}
.container { width: 200px; height: 200px; background: #e3e3e3; display: block; position: absolute; top: 50%; left: 50%; margin-top: -100px; margin-left: -100px; box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2); z-index: 1;
}
.svg-container { width: 150px; height: 150px; display: block; position: absolute; top: 50%; left: 50%; margin-top: -75px; margin-left: -75px; transform: scale(1); transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.svg-container-squish { transform: scale(0.33333);
}
.borderhide { opacity: 0 !important;
}
.top-x-border { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 100%; height: 1px; background: cyan; top: 50%; margin-top: -75px; left: 0px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.bottom-x-border { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 100%; height: 1px; background: cyan; top: 50%; margin-top: 75px; left: 0px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.left-y-border { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 1px; height: 100%; background: cyan; top: 0px; left: 50%; margin-left: -75px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.right-y-border { position: absolute; opacity: 0.5; z-index: 3; display: block; display: block; width: 1px; height: 100%; background: cyan; top: 0px; left: 50%; margin-left: 75px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.top-x-border-50 { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 100%; height: 1px; height: 1px; background: magenta; top: 50%; margin-top: -25px; left: 0px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.bottom-x-border-50 { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 100%; height: 1px; background: magenta; top: 50%; margin-top: 25px; left: 0px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.left-y-border-50 { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 1px; height: 100%; background: magenta; top: 0px; left: 50%; margin-left: -25px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.right-y-border-50 { position: absolute; opacity: 0.5; z-index: 3; display: block; width: 1px; height: 100%; background: magenta; top: 0px; left: 50%; margin-left: 25px; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
/* Here are the colours */
/* Here's the SVG CSS */
.incident-icon { fill: none; stroke: #e34c3a; stroke-width: 10px; stroke-linejoin: round;
}
.incident-icon-red { stroke: #e34c3a !important;
}
.incident-icon-orange { stroke: #f29c22;
}
.incident-icon-yellow { stroke: #efc319;
}
.incident-icon-bg { fill: #f1f1f1; stroke: none;
}
.incident-pointy-bit { fill: #e34c3a;
}
.incident-pointy-bit-red { fill: #e34c3a;
}
.incident-pointy-bit-orange { fill: #f29c22;
}
.incident-pointy-bit-yellow { fill: #efc319;
}
.incident-icon-activeline { fill: none; stroke: #272822; transform: scale(1); transform-origin: 50% 50%; stroke-width: 4; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.incident-icon-activeline-active { transform: scale(1.5);
}
.change-size { width: 200px; height: 50px; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-size: 16px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 20px; right: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.change-size:hover { cursor: pointer;
}
.change-size:active { box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
}
.toggle-borders { width: 200px; height: 50px; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-size: 16px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 90px; right: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.toggle-borders:hover { cursor: pointer;
}
.toggle-borders:active { box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
}
.red-toggle { width: 200px; height: 50px; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-size: 16px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 160px; right: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.red-toggle:hover { cursor: pointer;
}
.red-toggle:active { box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
}
.orange-toggle { width: 200px; height: 50px; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-size: 16px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 230px; right: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.orange-toggle:hover { cursor: pointer;
}
.orange-toggle:active { box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
}
.yellow-toggle { width: 200px; height: 50px; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-size: 16px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 300px; right: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s;
}
.yellow-toggle:hover { cursor: pointer;
}
.yellow-toggle:active { box-shadow: 3px 5px 10px 0px rgba(0, 0, 0, 0.2);
}
.hello { width: 400px; height: 50px; background: #3e3e3e; color: #e3e3e3; display: block; text-align: center; font-size: 20px; font-weight: 700; font-family: 'Open Sans', helvetica; text-transform: uppercase; line-height: 50px; position: absolute; top: 20px; left: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s; text-align: left; padding: 20px;
}
.how-are-you { width: 400px; height: auto; background: #e3e3e3; color: #3e3e3e; display: block; text-align: center; font-weight: 400; font-family: 'Open Sans', helvetica; line-height: 50px; position: absolute; text-align: justify; font-size: 14px; line-height: 28px; top: 110px; left: 20px; box-shadow: 3px 5px 10px 0px transparent; z-index: 1; transition: all cubic-bezier(0.5, 0, 0.5, 1) 0.3s; padding: 20px;
}
SVG Icons Template - Event - Script Codes JS Codes
$(".svg-container").click(function() { var classActiveSVG = $(".incident-icon-activeline").attr("class"); if (classActiveSVG == "incident-icon-activeline incident-icon-activeline-active") { $(".incident-icon-activeline").attr("class", "incident-icon-activeline"); } else { $(".incident-icon-activeline").attr("class", "incident-icon-activeline incident-icon-activeline-active"); }
});
$(".change-size").click(function() { $(".svg-container").toggleClass("svg-container-squish");
});
$(".toggle-borders").click(function() { $(".top-x-border").toggleClass("borderhide"); $(".bottom-x-border").toggleClass("borderhide"); $(".left-y-border").toggleClass("borderhide"); $(".right-y-border").toggleClass("borderhide"); $(".top-x-border-50").toggleClass("borderhide"); $(".bottom-x-border-50").toggleClass("borderhide"); $(".left-y-border-50").toggleClass("borderhide"); $(".right-y-border-50").toggleClass("borderhide");
});
Developer | Colm Hewson |
Username | legofsalmon |
Uploaded | November 28, 2022 |
Rating | 3 |
Size | 5,373 Kb |
Views | 6,072 |
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!
Name | Size |
Map Marker Test | 2,330 Kb |
Get a Route - Draft v02 | 6,979 Kb |
A Pen by Colm Hewson | 12,521 Kb |
Brens thing | 4,542 Kb |
SVG Icons Template | 2,618 Kb |
Listy - Version 1 | 7,049 Kb |
Get a Route - Draft | 5,279 Kb |
SVG Animate Test | 3,310 Kb |
Des1gnon Logo - Testing the Wave Pattern | 2,201 Kb |
Get a Route - Draft v04 - Flexbox Test | 8,592 Kb |
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!
Name | Username | Size |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Responsive Menu I | Rodericksandoval | 3,045 Kb |
Perspective Origin Demo | Agelber | 3,614 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
Bloomberg Style Link Hover | Gil-- | 1,609 Kb |
Portfolio Page | KaylaMT | 1,983 Kb |
Under construction | GhostRider | 1,642 Kb |
Slides-07-1 POSITION | Exhtml | 1,909 Kb |
Donald Trump - The New Yorker | Agbales | 2,502 Kb |
Particle Motion trajectories | Sniejadlik | 5,899 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!