开发者

ContentFlow: avoid image-overlapping

I'm using ContentFlow (http://www.jacksasylum.eu/ContentFlow/index.php) and I would like to avoid image-overlapping adding 20px more on both left and right sides. Could you tell me how to im开发者_运维问答plement it? Many thanks! Corrado.


So, what you do:

  1. Install the DEFAULT addon
  2. Go to ContentFlowAddOn_DEFAULT.js and search for this:
    alcCoordinates: function (item) {
                var rP = item.relativePosition;
                //var rPN = item.relativePositionNormed;
                var vI = this.conf.visibleItems; 

                var f = 1 - 1/Math.exp( Math.abs(rP)*0.75);
                var x =  item.side * vI/(vI+1)* f; 
                var y = 1;

                return {x: x, y: y};
            },

You are particularly interested in 0.75 number at the end of var f.

  • change it 1.75 and higher depending opn your preferences.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜