TweenMax text - changing slogans

2,333 Kb

How do I make an tweenmax text - changing slogans?

What is a tweenmax text - changing slogans? How do you make a tweenmax text - changing slogans? This script and codes were developed by Chrysto on 16 July 2022, Saturday.

TweenMax text - changing slogans Previews

TweenMax text - changing slogans - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>TweenMax text - changing slogans</title> <link rel="stylesheet" href="css/style.css">
<body> <div id="holder">	<div id="slogans">	<p class="slogan"><strong>TWEENMAX</strong></p>	<p class="slogan"><strong>IS GREAT</strong></p>	<p class="slogan"><strong>YOU CAN</strong></p>	<p class="slogan"><strong>ANIMATE</strong></p>	<p class="slogan"><strong>EVERYTHING</strong></p>	<p class="slogan"><strong>WITH</strong></p>	</div>	</div> <script src=''></script>
<script src=''></script> <script src="js/index.js"></script>

TweenMax text - changing slogans - Script Codes CSS Codes

html, body, div {	margin: 0;	padding: 0;	}	body{	background-color: #f5f5f5;	color: #444;	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;	font-size: 16px; line-height: 1.4em;	}	#holder{	position: relative;	width: 600px;	margin: 100px auto;	-webkit-user-select: none;	-moz-user-select: none;	-ms-user-select: none;	-o-user-select: none;	user-select: none;	}	#slogans{	position: relative;	top: 0px;	right: 0px;	}	p.slogan{	text-rendering: optimizeLegibility;	margin: 0px;	font-size: 60px;	text-transform: uppercase;	}	p.slogan strong{	display:block;	position:relative;	opacity:0;	}

TweenMax text - changing slogans - Script Codes JS Codes

$(function(){	var $slogans = $("p.slogan").find("strong");	var $holder = $("#holder");	//set via JS so they're visible if JS disabled	$slogans.parent().css({position : "absolute", top:"0px", left:"0px"});	//settings	var transitionTime = 0.4;	var slogansDelayTime = 2;	//internal	var totalSlogans = $slogans.length;	var oldSlogan = 0;	var currentSlogan = -1;	//initialize	switchSlogan();	function switchSlogan(){	oldSlogan = currentSlogan;	if(currentSlogan < totalSlogans-1){	currentSlogan ++	} else {	currentSlogan = 0;	}$slogans.eq(oldSlogan), transitionTime, {top:-20, alpha:0, rotationX: 90});	TweenLite.fromTo($slogans.eq(currentSlogan), transitionTime, {top:20, alpha:0, rotationX: -90 }, {top:0, alpha:1, rotationX:0});	TweenLite.delayedCall(slogansDelayTime, switchSlogan);	}	});
TweenMax text - changing slogans - Script Codes
TweenMax text - changing slogans - Script Codes
Home Page Home
Developer Chrysto
Username bassta
Uploaded July 16, 2022
Rating 4
Size 2,333 Kb
Views 30,360
Do you need developer help for TweenMax text - changing slogans?

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!

Chrysto (bassta) Script Codes
Create amazing video scripts 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!