- Posts: 9
- Thank you received: 0
Discussion about Hot Spinner Joomla module.
Centralization with Module Width relative
-
murilotimo
Inactive member - Topic Author
- New Member
Less
More
12 years 9 months ago #15682
by murilotimo
Centralization with Module Width relative was created by murilotimo
hello,
I would like to put the Module Width with a relative value, eg 100%, to suit the user's window size.
But when I do, the center of rotation is decentralized.
you can do with that centralization is also on?
I would like to put the Module Width with a relative value, eg 100%, to suit the user's window size.
But when I do, the center of rotation is decentralized.
you can do with that centralization is also on?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 9 months ago - 12 years 9 months ago #15710
by ivan.milic
Replied by ivan.milic on topic Re: Centralization with Module Width relative
Well position of center is defined in parameters . You can change it on widnow resize event:
jQuery(window).resize(function(){
var x = <calculetae your x>;//jQuery(window).width() - something probably
var y = <calculetae your y>;
jQuery('#container').holest_carousel('option','center',[x,y]);
});
EDIT:
Also you will need new version of spinner , eater download it again in two days of send e-mail via "Report To Moderator" to send you new files.
jQuery(window).resize(function(){
var x = <calculetae your x>;//jQuery(window).width() - something probably
var y = <calculetae your y>;
jQuery('#container').holest_carousel('option','center',[x,y]);
});
EDIT:
Also you will need new version of spinner , eater download it again in two days of send e-mail via "Report To Moderator" to send you new files.
Last edit: 12 years 9 months ago by ivan.milic.
The following user(s) said Thank You: murilotimo
Please Log in to join the conversation.
-
murilotimo
Inactive member - Topic Author
- New Member
Less
More
- Posts: 9
- Thank you received: 0
12 years 9 months ago #15782
by murilotimo
Replied by murilotimo on topic Re: Centralization with Module Width relative
this new version will fix the centralization? That's cool! Thank you!
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 9 months ago - 12 years 9 months ago #15803
by ivan.milic
Replied by ivan.milic on topic Re: Centralization with Module Width relative
You got new js file.
Module does not do the 100% width centralization as you want. You can center carousel by adding this css:
.holest-carousel{
margin:0 auto;
}
This will not change center point it will center spinner container.
If you want to do re-sizing, radius and center point on window resize you must add additional code like I send you in prev post:
jQuery(window).resize(function(){
var x = <calculetae your x>;//jQuery(window).width() - something probably
var y = <calculetae your y>;
var newradius = <calculate new radius>;
jQuery('#container').holest_carousel('option','center',[x,y]);
jQuery('#container').holest_carousel('option','radius',newradius);
jQuery('#container').holest_carousel('option','radius',newradius);
});
here are some more options you may want to control:
jQuery('#container').holest_carousel('option','item_height',your_value);
jQuery('#container').holest_carousel('option','item_width',your_value);
Module does not do the 100% width centralization as you want. You can center carousel by adding this css:
.holest-carousel{
margin:0 auto;
}
This will not change center point it will center spinner container.
If you want to do re-sizing, radius and center point on window resize you must add additional code like I send you in prev post:
jQuery(window).resize(function(){
var x = <calculetae your x>;//jQuery(window).width() - something probably
var y = <calculetae your y>;
var newradius = <calculate new radius>;
jQuery('#container').holest_carousel('option','center',[x,y]);
jQuery('#container').holest_carousel('option','radius',newradius);
jQuery('#container').holest_carousel('option','radius',newradius);
});
here are some more options you may want to control:
jQuery('#container').holest_carousel('option','item_height',your_value);
jQuery('#container').holest_carousel('option','item_width',your_value);
Last edit: 12 years 9 months ago by ivan.milic.
Please Log in to join the conversation.
Time to create page: 0.161 seconds