Skip to content

coredge007/jquery-text-tailor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-text-tailor

this is jQuery plugin for handling text overflow. All you have to do is import files and add attribute named 'data-text-tailor' to each html elements and execute a javascript function. like below

    (function initPage($) {

        textTailor.init({
            transform: '...',
            lines: 2
        });

    }).apply(this, [jQuery]);

Also, You can give more option to each html element.

data-text-tailor='{"transform":"***","lines":"3"}'
data-text-tailor='{"transform":"☆☆☆","lines":"4"}'
data-text-tailor='{"transform":"♡♡♡","lines":"5"}'
data-text-tailor='{"transform":"...viewMore▷","lines":"3","href":"http:https://www.google.com"}'
data-text-tailor='{"transform":"...viewMore▷","lines":"3","href":"http:https://www.google.com","target":"_blank"}'

  • Notice : this plugin do not response to window resize event.

About

this is jQuery plugin for handling text overflow.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages