Skip to content

Instantly share code, notes, and snippets.

@nickbewley
Created August 14, 2018 07:15
Show Gist options
  • Save nickbewley/2915d90ee491b919a968e5688d30c863 to your computer and use it in GitHub Desktop.
Save nickbewley/2915d90ee491b919a968e5688d30c863 to your computer and use it in GitHub Desktop.
<!-- Additions to the framer html file to put at the bottom right before the </head> tag -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<!-- Added Markup -->
<style>
.alarm-animation {
stroke-dasharray: 73.42230224609375;
stroke-dashoffset: 73.42230224609375;
animation: animate 2s ease-in alternate infinite;
fill:none;
stroke: #000000;
stroke-width:2;
stroke-linecap:round;
stroke-linejoin:round;
stroke-miterlimit:10;
}
@keyframes animate {
from {
stroke-dashoffset: 73.42230224609375;
}
to {
stroke-dashoffset: 0;
}
}
</style>
<script>
function alarmBellAnimation(){
$("#alarm").attr("class", "alarm-animation");
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment