A Pen by Keyvan Akbary

Developer
Size
2,866 Kb
Views
28,336

How do I make an a pen by keyvan akbary?

Forked from Fran Pérez's Pen faGkE.. What is a a pen by keyvan akbary? How do you make a a pen by keyvan akbary? This script and codes were developed by Keyvan Akbary on 29 September 2022, Thursday.

A Pen by Keyvan Akbary Previews

A Pen by Keyvan Akbary - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Keyvan Akbary</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <script src='https://examples.framerjs.com/static/examples/google-now-overview.framer/framer/framer.js'></script> <script src="js/index.js"></script>
</body>
</html>

A Pen by Keyvan Akbary - Script Codes CSS Codes

body { background: white;
}

A Pen by Keyvan Akbary - Script Codes JS Codes

(function() { var HALO_STYLE, MIC_STYLE, animateLayers, animating, generateRandomFactor, haloLayer, init, initHaloLayer, initMicLayer, initScaleUpAnimation, micLayer, onClickMic, scaleDownAnimation, scaleUpAnimation, stopAnimations; MIC_STYLE = { x: 100, y: 100, width: 72, height: 72, borderRadius: "100px", backgroundColor: "blue" }; HALO_STYLE = { x: 100, y: 100, width: 72, height: 72, opacity: .05, borderRadius: "100px", backgroundColor: "black" }; animating = false; micLayer = null; haloLayer = null; scaleUpAnimation = null; scaleDownAnimation = null; init = function() { micLayer = initMicLayer(onClickMic); return haloLayer = initHaloLayer(micLayer); }; initMicLayer = function(clickCallback) { var layer; layer = new Layer(MIC_STYLE); layer.on(Events.Click, clickCallback); return layer; }; initHaloLayer = function(parentLayer) { var layer; layer = new Layer(HALO_STYLE); layer.superLayer = parentLayer.superLayer; layer.placeBehind(parentLayer); return layer; }; onClickMic = function() { if (animating) { animating = false; return stopAnimations(); } else { animating = true; return animateLayers(); } }; stopAnimations = function() { scaleUpAnimation.stop(); return scaleDownAnimation.stop(); }; animateLayers = function() { scaleUpAnimation = initScaleUpAnimation(); scaleDownAnimation = scaleUpAnimation.reverse(); scaleDownAnimation.on("end", animateLayers); return scaleUpAnimation.on("end", scaleDownAnimation.start); }; initScaleUpAnimation = function() { var factor; factor = generateRandomFactor(1.2, 2); return haloLayer.animate({ properties: { scale: factor }, curve: "ease-out", time: factor * 0.13 }); }; generateRandomFactor = function(min, max) { return Math.random() * (max - min) + min; }; init();
}).call(this);
A Pen by Keyvan Akbary - Script Codes
A Pen by Keyvan Akbary - Script Codes
Home Page Home
Developer Keyvan Akbary
Username keyvanakbary
Uploaded September 29, 2022
Rating 3
Size 2,866 Kb
Views 28,336
Do you need developer help for A Pen by Keyvan Akbary?

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!

Keyvan Akbary (keyvanakbary) Script Codes
Create amazing sales emails 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!