PATH:
home
/
lab2454c
/
baas.elementalrock.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
/*! * Morphext - Text Rotating Plugin for jQuery * https://github.com/MrSaints/Morphext * * Built on jQuery Boilerplate * http://jqueryboilerplate.com/ * * Copyright 2014 Ian Lai and other contributors * Released under the MIT license * http://ian.mit-license.org/ */ /*eslint-env browser */ /*global jQuery:false */ /*eslint-disable no-underscore-dangle */ (function ($) { "use strict"; var pluginName = "Morphext", defaults = { animation: "bounceIn", separator: ",", speed: 2000, complete: $.noop }; function Plugin (element, options) { this.element = $(element); this.settings = $.extend({}, defaults, options); this._defaults = defaults; this._init(); } Plugin.prototype = { _init: function () { var $that = this; this.phrases = []; this.element.addClass("morphext"); $.each(this.element.text().split(this.settings.separator), function (key, value) { $that.phrases.push($.trim(value)); }); this.index = -1; this.animate(); this.start(); }, animate: function () { this.index = ++this.index % this.phrases.length; this.element[0].innerHTML = "<span class=\"animated " + this.settings.animation + "\">" + this.phrases[this.index] + "</span>"; if ($.isFunction(this.settings.complete)) { this.settings.complete.call(this); } }, start: function () { var $that = this; this._interval = setInterval(function () { $that.animate(); }, this.settings.speed); }, stop: function () { this._interval = clearInterval(this._interval); } }; $.fn[pluginName] = function (options) { return this.each(function() { if (!$.data(this, "plugin_" + pluginName)) { $.data(this, "plugin_" + pluginName, new Plugin(this, options)); } }); }; })(jQuery);
[-] scroll-up.js
[edit]
[-] appear.js
[edit]
[-] off-canvas.js
[edit]
[-] member.min.js
[edit]
[-] alert.min.js
[edit]
[-] typed.min.js
[edit]
[-] navbar.js
[edit]
[-] hotspots.js
[edit]
[-] asPieProgress.min.js
[edit]
[-] blog-grid.js
[edit]
[-] hotspots.min.js
[edit]
[+]
..
[-] modal.js
[edit]
[-] blog-grid.min.js
[edit]
[-] instagram.js
[edit]
[-] twentytwenty.js
[edit]
[-] countdown.min.js
[edit]
[-] woo-slider.min.js
[edit]
[-] modal.min.js
[edit]
[-] google-map.min.js
[edit]
[-] image-comparison.js
[edit]
[-] blog-carousel.js
[edit]
[-] search.min.js
[edit]
[-] image-comparison.min.js
[edit]
[-] skillbar.js
[edit]
[-] event.move.js
[edit]
[-] instagram.min.js
[edit]
[-] skillbar.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] circle-progress.min.js
[edit]
[-] accordion.js
[edit]
[-] accordion.min.js
[edit]
[-] morphext.min.js
[edit]
[-] alert.js
[edit]
[-] navbar.min.js
[edit]
[-] morphext.js
[edit]
[-] search.js
[edit]
[-] countdown.js
[edit]
[-] image-gallery.js
[edit]
[-] off-canvas.min.js
[edit]
[-] appear.min.js
[edit]
[-] isotope.min.js
[edit]
[-] tooltip.min.js
[edit]
[-] newsletter.min.js
[edit]
[-] query-post.js
[edit]
[-] event.move.min.js
[edit]
[-] query-post.min.js
[edit]
[-] member.js
[edit]
[-] search-icon.js
[edit]
[-] slick.js
[edit]
[-] woo-slider.js
[edit]
[-] isotope.js
[edit]
[-] blog-carousel.min.js
[edit]
[-] tabs.min.js
[edit]
[-] asPieProgress.js
[edit]
[-] circle-progress.js
[edit]
[-] image-gallery.min.js
[edit]
[-] twentytwenty.min.js
[edit]
[-] search-icon.min.js
[edit]
[-] toggle.min.js
[edit]
[-] google-map.js
[edit]
[-] scroll-up.min.js
[edit]
[-] typed.js
[edit]
[-] newsletter.js
[edit]
[-] tooltip.js
[edit]