i have this carousel from here and i am trying to add some css3 transform options to it.
more exactly:
-webkit-transform-style: preserve-3d;
-webkit-transform: rotateY(45deg);
in the javascript i have
if (newPosition == 1) {
new_width = pluginData.largeFeatureWidth;
new_height = pluginData.largeFeatureHeight;
new_top = options.topPadding;
new_zindex = $feature.css("z-index");
new_fade = 1.0;
} else {
new_width = pluginData.smallFeatureWidth;
new_height = pluginData.smallFeatureHeight;
new_top = options.smallFeatureOffset + options.topPadding;
new_zindex = 1;
new_fade = 0.4;
}
and the animate function runs here
.animate(
{
width: new_width,
height: new_height,
top: new_top,
left: new_left,
opacity: new_fade
}
the generated css is:
element.style {
width: 225px;
height: 115px;
top: 70px;
left: 50px;
opacity: 0.4;
z-index: 1;
}
now, all this vars are being calculated by this plugin, and i am only interested in adding the transform options to this animate function, something like this:
....
} else {
new_width = pluginData.smallFeatureWidth;
new_height = pluginData.smallFeatureHeight;
new_top = options.smallFeatureOffset + options.topPadding;
new_zindex = 1;
new_fade = 0.4;
new_transform_style = 'preserve-3d';
new_transform = 'rotateY(45deg)';
}
and
.animate(
{
width: new_width,
height: new_height,
top: new_top,
left: new_left,
opacity: new_fade,
transform_style = new_transform_style;
transform = new_transform;
}
but im not sure that those are the right style notations for animate
any ideas?
thanks