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:
- Install the DEFAULT addon
- 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.
精彩评论