Number 1 Tracer
About this app
An app that traces the number 1
Number 1 Tracer
Related apps
Put this on your site
Source
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Number 1 Tracer</title>
<meta name="description" content="An app that traces the number 1">
<meta name="keywords" content="number 1, trace, SVG, animation">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.2/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<script type="text/javascript">
try {
// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
const svgElement = document.getElementById("svg-number-1");
const length = svgElement.getTotalLength();
// Set the length of the path to 0 initially
svgElement.style.strokeDasharray = length;
svgElement.style.strokeDashoffset = length;
// Animate the path to draw the number 1
svgElement.style.animation = "draw 2s linear forwards";
});
} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>
<style>
/* App CSS Goes Here */
svg {
width: 200px;
height: 200px;
margin: 0 auto;
display: block;
fill: none;
stroke: #ff5a5f;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
}
@keyframes draw {
to {
stroke-dashoffset: 0;
}
}
</style>
</head>
<body>
<div id="main-container" class="container">
<!-- App HTML Goes Here -->
<svg id="svg-number-1" viewBox="0 0 100 100">
<path d="M 50 10 L 50 90"></path>
</svg>
</div>
</body>
</html>
NEW APPS
These are apps made by the community!