- Posts: 129
- Thank you received: 0
Make Content Module carousel RTL
9 years 5 months ago #267875
by nic7071
Make Content Module carousel RTL was created by nic7071
-- HikaShop version -- : 3.0.1
hi,
i want to make Content Module carousel right to left.
i know i have to change something in product > carousel.php i''ve tried somethings like changing margin-left to margin-right in line : 613
and setting float: right to li s
but i still got some bugs.
i think i just need to i just need to change the value of margin-right in li style.
i was wondering if any of HikaShop Good Staffs or any of forum users have done such a thing and could give me a hint on how to do so.
i really appreciate any help.
Thanks.
hi,
i want to make Content Module carousel right to left.
i know i have to change something in product > carousel.php i''ve tried somethings like changing margin-left to margin-right in line : 613
and setting float: right to li s
but i still got some bugs.
i think i just need to i just need to change the value of margin-right in li style.
i was wondering if any of HikaShop Good Staffs or any of forum users have done such a thing and could give me a hint on how to do so.
i really appreciate any help.
Thanks.
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267895
by nicolas
Replied by nicolas on topic Make Content Module carousel RTL
Hi,
I don't think that it's possible with just CSS. I would have guessed that you would have had to change the javascript if you want to have the effect go the other way than what it is normally. Isn't that what you mean by RTL on the carousel ?
I don't think that it's possible with just CSS. I would have guessed that you would have had to change the javascript if you want to have the effect go the other way than what it is normally. Isn't that what you mean by RTL on the carousel ?
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267900
by nic7071
Replied by nic7071 on topic Make Content Module carousel RTL
hi nicolas ,
yes i want it to begin at the right and when scoll for next slide it get margin-right: -3000px to go to right side instead of left.
and style like that to become rtl.
do i have to change the product > carousel.php?
if so could you please tell me how ?
yes i want it to begin at the right and when scoll for next slide it get margin-right: -3000px to go to right side instead of left.
and style like that to become rtl.
do i have to change the product > carousel.php?
if so could you please tell me how ?
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267920
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Make Content Module carousel RTL
Hello,
In order to change the carousel, yes you have to override the "product / carousel" view.
The current system is using "mootools" in order to create the effects and we have in our TODO list a task in order to entirely rewrite it using a jquery library.
If you want to learn more about the actual system in order to be able to modify it ; it is based on the "FX.morph" feature of mootools :
mootools.net/core/docs/1.6.0/Fx/Fx.Morph
Depending the transition mode, you can have different effects, with a one direction slider or like a "ping pong" slider..
I guess that your goal would be to find the most appropriate transition which will be a right to left one.
Regards,
In order to change the carousel, yes you have to override the "product / carousel" view.
The current system is using "mootools" in order to create the effects and we have in our TODO list a task in order to entirely rewrite it using a jquery library.
If you want to learn more about the actual system in order to be able to modify it ; it is based on the "FX.morph" feature of mootools :
mootools.net/core/docs/1.6.0/Fx/Fx.Morph
Depending the transition mode, you can have different effects, with a one direction slider or like a "ping pong" slider..
I guess that your goal would be to find the most appropriate transition which will be a right to left one.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.163 seconds