TweenMax Smoke

Developer
Size
2,994 Kb
Views
4,048

How do I make an tweenmax smoke?

What is a tweenmax smoke? How do you make a tweenmax smoke? This script and codes were developed by Cmalven on 29 January 2023, Sunday.

TweenMax Smoke Previews

TweenMax Smoke - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>TweenMax Smoke</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

TweenMax Smoke - Script Codes CSS Codes

body, html { overflow: hidden;
}
.container { position: relative; margin: 0 auto; width: 100px; padding: 350px 0;
}
.box { width: 20px; height: 20px; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22106.271%22%20height%3D%22105.578%22%20viewBox%3D%220%200%20106.271%20105.578%22%3E%3Cpath%20fill%3D%22%23231F20%22%20d%3D%22M106.271%2053.015c0-8.291-5.909-15.196-13.744-16.749%203.979-6.332%203.226-14.788-2.287-20.3-5.53-5.53-14.022-6.273-20.361-2.252-1.537-7.817-8.421-13.714-16.688-13.714-8.476%200-15.484%206.204-16.78%2014.315-6.142-4.032-14.47-3.351-19.87%202.049-5.353%205.354-6.062%2013.581-2.146%2019.707-8.161%201.338-14.395%208.404-14.395%2016.944%200%207.95%205.404%2014.62%2012.733%2016.586-3.961%206.691-3.086%2015.453%202.667%2021.205%205.913%205.913%2015.011%206.687%2021.767%202.335%201.836%207.147%208.304%2012.438%2016.024%2012.438%208.016%200%2014.7-5.694%2016.232-13.258%206.465%204.315%2015.284%203.624%2020.991-2.083%205.573-5.573%206.352-14.109%202.366-20.528%207.708-1.65%2013.491-8.494%2013.491-16.695z%22%2F%3E%3C%2Fsvg%3E'); background-position: center center; background-size: contain; background-repeat: no-repeat;
}

TweenMax Smoke - Script Codes JS Codes

(function() { var mouseUpdate, update; $(function() { window.smokeX = 0; $(window).on('mousemove', mouseUpdate); return setInterval(update, 16); }); update = function() { var box; box = $('<div class="box"></div>').appendTo('.container'); return TweenMax.to(box, 2, { css: { x: (Math.random() * 100) + smokeX, y: (Math.random() * 50) - 250, scaleX: 6, scaleY: 6, scaleZ: 3, rotation: 180, opacity: 0 }, onComplete: function(value) { return box.remove(); } }); }; mouseUpdate = function(evt) { var winCenter; winCenter = $(window).width() / 2; return window.smokeX = evt.clientX - winCenter; };
}).call(this);
TweenMax Smoke - Script Codes
TweenMax Smoke - Script Codes
Home Page Home
Developer Cmalven
Username cmalven
Uploaded January 29, 2023
Rating 3.5
Size 2,994 Kb
Views 4,048
Do you need developer help for TweenMax Smoke?

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!

Cmalven (cmalven) Script Codes
Create amazing blog posts 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!