• Stars
    star
    171
  • Rank 214,424 (Top 5 %)
  • Language
    JavaScript
  • Created over 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Create funny and crazy moving texts in a simple way

funnyText.js

preview Create funny and crazy moving texts in a simple way.

Usage

As you can see in the example.html file, you will need to include the JavaScript file jquery.funnyText.js and the css file jquery.funnyText.css of the plugin, as well as jQuery.

Including files:

<link rel="stylesheet" type="text/css" href="jquery.funnyText.css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
	
<script type="text/javascript" src="jquery.funnyText.js"></script>

Required HTML structure

The funny text effect will be applied to the text under your custom selector which will be used as well in the initialization.

<div class="mySelector">funnText is applied here</div>

Initialization

All you need to do is call the plugin inside a $(document).ready function using the selector in which the text is contained.

$(document).ready(function() {
	$('.mySelector').funnyText();
});

A more complex initialization with all the options set could look like this:

$(document).ready(function() {
	$('.mySelector').funnyText({
		speed: 700,
		borderColor: 'black',
		activeColor: 'white',
		color: 'black',
		fontSize: '7em',
		direction: 'both'
	});
});

Options

  • speed: (default 700) Defines the speed in which the letters change in milliseconds.

  • borderColor: (default black) Defines the color of the border when the text is active. This option won't take effect when if the browser doesn't support CSS3.

  • activeColor: (default white) Defines the color of the text when it is active.

  • color: (default black) Defines the color of the text on start.

  • fontSize: (default 7em) Defines the size of the font.

  • direction : (default both) Defines the direction of the letters movement. It can be both, horizontal or vertical.

More Repositories

1

fullPage.js

fullPage plugin by Alvaro Trigo. Create full screen pages fast and simple
JavaScript
34,897
star
2

pagePiling.js

pagePiling plugin by Alvaro Trigo. Create a scrolling pile of sections. http://alvarotrigo.com/pagePiling/
JavaScript
4,095
star
3

vue-fullpage.js

Official Vue.js wrapper for fullPage.js http://alvarotrigo.com/vue-fullpage/
Vue
1,825
star
4

multiscroll.js

multiscroll plugin by Alvaro Trigo. Create scrolling split websites. http://alvarotrigo.com/multiScroll/
JavaScript
1,587
star
5

react-fullpage

Official React.js wrapper for fullPage.js https://alvarotrigo.com/react-fullpage/
JavaScript
1,266
star
6

angular-fullpage

Official Angular wrapper for fullPage.js https://alvarotrigo.com/angular-fullpage/
TypeScript
173
star
7

skrollTop.js

Lightweight jQuery scrollTop animation without jQuery
JavaScript
36
star
8

validPic.js

Image validator for javascript based on mimetypes
JavaScript
36
star
9

fallingwords.js

Just having fun with HTML, CSS and Javascript
JavaScript
32
star
10

PHP-Backend

PHP
28
star
11

nuxt-fullpage

Official Nuxt Module For The Official vue-fullpage wrapper
Vue
17
star
12

landingScroll.js

Home page landing scroll by Alvaro Trigo
JavaScript
10
star
13

VB.NET

Some exercises i did on VB.NET. Both the interface and the code.
Visual Basic
8
star
14

CakePHP

Here i upload some public projects or functions i consider interesting.
PHP
5
star
15

Front-end--jQuery--CSS-

UI Interface - Front-end design
PHP
3
star
16

SQL---PL-SQL

3
star
17

Java

Java
3
star
18

david-5ef1d7a76a92e

This is the description of a repo
2
star
19

david-5ef1d1c5aa81d

This is the description of a repo
2
star
20

blog-assets

Assets
2
star
21

david-5ef1d28d594f3

This is the description of a repo
2
star
22

david-5ef1d76cede71

This is the description of a repo
2
star
23

loco4

Page created with fullSnap.io
HTML
1
star
24

loco3

Page created with fullSnap.io 2
HTML
1
star
25

loco2

Page created with fullSnap.io 2
HTML
1
star
26

loco5

Page created with fullSnap.io 2
HTML
1
star
27

OpColumns.js

jQuery Plugin to show or hide columns in tables.
1
star