All Projects → MrSaints → Morphext

MrSaints / Morphext

Licence: other
A simple, high-performance and cross-browser jQuery rotating / carousel plugin for text phrases powered by Animate.css.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Morphext

Morphist
A simple, high-performance and cross-browser jQuery slider / slideshow / carousel plugin for child objects powered by Animate.css.
Stars: ✭ 60 (-84.37%)
Mutual labels:  carousel, jquery, css3, css-animations, cross-browser
Landing-Page-Animation
Landing page animation made using CSS
Stars: ✭ 45 (-88.28%)
Mutual labels:  css3, css-animations
hexa
Awesome Css Animation. The documentation =>
Stars: ✭ 32 (-91.67%)
Mutual labels:  css3, css-animations
nglp-angular-material-landing-page
NGLP is an Angular Material Landing Page.
Stars: ✭ 32 (-91.67%)
Mutual labels:  css-animations, carousel
flexbox-carousel
CSS3 Animated Carousel with Flexbox
Stars: ✭ 23 (-94.01%)
Mutual labels:  css3, carousel
CSS-Collection
A wide variety of animations done using only CSS
Stars: ✭ 44 (-88.54%)
Mutual labels:  css3, css-animations
web-animation-club
CSS controlled animations with transitionEnd, onTransitionEnd, animationend, onAnimationEnd events and frame throwing. Tiny javascript library with cross-browser methods to handle css animation/transition callbacks and event loop frame throwing. 📚🖥️📱
Stars: ✭ 52 (-86.46%)
Mutual labels:  css3, css-animations
Framecarousel
A jQuery plugin for quickly creating carousels within frames
Stars: ✭ 14 (-96.35%)
Mutual labels:  carousel, jquery
learn-css-animation
Learn CSS animation with fun. It is simple, easy to use, and fun to learn.
Stars: ✭ 54 (-85.94%)
Mutual labels:  css3, css-animations
Textillate
A jquery plugin for CSS3 text animations.
Stars: ✭ 3,590 (+834.9%)
Mutual labels:  jquery, css-animations
css-collection
🧙‍♂️ CSS芸人への道(CSSでつくったもの集)| I want to be CSS Magician
Stars: ✭ 82 (-78.65%)
Mutual labels:  css3, css-animations
Jcarousel
Riding carousels with jQuery.
Stars: ✭ 2,031 (+428.91%)
Mutual labels:  carousel, jquery
Widget
A set of widgets based on jQuery&&javascript. 一套基于jquery或javascript的插件库 :轮播、标签页、滚动条、下拉框、对话框、搜索提示、城市选择(城市三级联动)、日历等
Stars: ✭ 1,579 (+311.2%)
Mutual labels:  carousel, jquery
aprendendo-css
Vários desenhos feitos com CSS e SCSS (e as vezes um pouco de JavaScript)
Stars: ✭ 56 (-85.42%)
Mutual labels:  css3, css-animations
T Shirts
The first OpenSource t-shirts (probably)
Stars: ✭ 300 (-21.87%)
Mutual labels:  css3, cross-browser
ResetCSS
Reset CSS Stylesheet to reduce browser inconsistencies.
Stars: ✭ 17 (-95.57%)
Mutual labels:  css3, cross-browser
Fe
前端热门文章阅读
Stars: ✭ 174 (-54.69%)
Mutual labels:  jquery, css3
Javascript
刘宾的博客->前端相关。
Stars: ✭ 195 (-49.22%)
Mutual labels:  jquery, css3
MERN-BUS-APP
This is a MFRP (My first Real Project) assigned to me during my internship at Cognizant. Made with MERN Stack technology.
Stars: ✭ 92 (-76.04%)
Mutual labels:  css3, css-animations
You Need To Know Css
💄CSS tricks for web developers~
Stars: ✭ 3,777 (+883.59%)
Mutual labels:  css3, css-animations

Morphext

Dev Dependency Status

A simple, high-performance and cross-browser jQuery rotating / carousel plugin for text phrases powered by Animate.css. It is more succinctly described by Softpedia as:

A jQuery plugin for creating text-based carousels, rotating small or large pieces of text one after the other, just like a slider does with images... This can be a great tool for displaying catch phrases, mission statements, tag lines, and so on.

If you would like to achieve a similar effect with more flexibility (e.g. out animation) and with HTML objects rather than text phrases (e.g. unordered list items), please check out Morphist.

Website / Demo

Install

Download from the project page.

Install with Bower: bower install --save Morphext

Usage

  1. Import the latest Animate.css and jQuery library into your HTML.

  2. Import morphext.css and include morphext.min.js in your HTML document.

  3. Encapsulate your rotating phrases in an element and separate each phrase with a comma or a separator of your choice:

    I am a <span id="js-rotating">So Simple, Very Doge, Much Wow, Such Cool</span> Text Rotator
    
  4. Trigger the plugin by calling Morphext() on the element containing the rotating phrases:

    $("#js-rotating").Morphext();
    

A demo titled index.html is included in this repository. Open it to see the end-result.

Options

Morphext exposes the following options to alter the behaviour of the plugin:

Option Type Default Description
animation string bounceIn The [in] animation type. Refer to Animate.css for a list of available animations.
separator string , An array of phrases to rotate are created based on this separator. Change it if you wish to separate the phrases differently (e.g. So Simple / Very Doge / Much Wow / Such Cool).
speed int 2000 The delay between the changing of each phrase in milliseconds.
complete object Function null A callback that is executed after an item is animated in.

They may be used like so:

$("#js-rotating").Morphext({
    animation: "fadeIn", // Overrides default "bounceIn"
    separator: "|", // Overrides default ","
    speed: 3000, // Overrides default 2000
    complete: function () {
        // Overrides default empty function
    }
});

The plugin relies heavily on Animate.css for its smooth, high performance animations to transition between each phrase. Thus, the default animation speed (different from the interval between each phrase as described above) may be altered via CSS:

#yourElement, .yourClass {
    /* Overrides Animate.css 1s duration */
    -vendor-animation-duration: 3s;
}

"Issues"

Issue Description Solution
Viewport Certain animations (e.g. "up" and "down") by Animate.css involves translating the element beyond the viewport thereby leading to unintended vertical and/or horizontal whitespace (further evident by the scrollbar "following" the animation effect. This is not a bug. It may be eradicated by applying overflow: hidden; (CSS) to the parent of the element being animated.
JavaScript JavaScript is required for the addition / removal of elements with Animate.css [CSS animation] classes thereby creating the "transitioning effect". If JavaScript is disabled or unavailable, nothing will happen. All the phrases and its separator will be shown as it is (graceful degradation). N/A
CSS3 Animate.css relies on CSS3 animations and transformations (available in most modern browsers). If CSS3 is disabled or unavailable, the phrases will continue to transition from one to another (assuming JavaScript is enabled), but there will be no animation effect. No fallback is provided by this plugin. You may however, handle the fallback through the use of Modernizr (for feature detection) and polyfills.

Should you encounter any problems or require assistance with this plugin, simply open a GitHub issue in this repository or you may contact me via Twitter.

Prerequisites

Others

Native ports of Morphext have been developed in other JavaScript frameworks (e.g. React and Polymer):

They are not part of the official plugin development and the approach used in developing these ports may not be idiomatic. Please use them at your own risk.

Issues and pull requests are welcomed.

License

Morphext is licensed under the MIT license (http://ian.mit-license.org/).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].