-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontentMatrix.min.js
8 lines (8 loc) · 1.21 KB
/
contentMatrix.min.js
1
2
3
4
5
6
7
8
/*!
contentMatrix v1.0.0 (https://github.com/TechTarget/contentMatrix)
Author: Morgan Wigmanich <[email protected]> (http://github.com/okize)
Copyright (c) 2013 | Licensed under the MIT license
http://www.opensource.org/licenses/mit-license.php
*/
(function(){!function(t){return"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){"use strict";var e,n,i;i="contentMatrix",n={effectType:"glow",effectSpeed:500},e=function(){function e(e,o){this.options=t.extend({},n,o),this._defaults=n,this._name=i,this.el=t(e),this.blocks=t(e).children(".contentBlock"),this.effectsMap={glow:"glowEffect"},this.init()}return e.prototype.init=function(){var t;return t=this,this.blocks.on({mouseenter:function(e){return t[t.effectsMap[t.options.effectType]]("on",e.target)},mouseleave:function(){return t[t.effectsMap[t.options.effectType]]("off")}})},e.prototype.glowEffect=function(e,n){var i,o;return i=t(n).parents(".contentBlock"),o="on"===e?.75:1,this.blocks.not(i).stop().fadeTo(this.options.effectSpeed,o)},e}(),t.fn[i]=function(n){return this.each(function(){t.data(this,"plugin_#{pluginName}")||t.data(this,"plugin_#{pluginName}",new e(this,n))})}})}).call(this);
//# sourceMappingURL=contentMatrix.min.js.map