Jump to content
Search Community

rtl problem while using text animation with split text plugin

Mahabub Hossain test
Moderator Tag

Recommended Posts

Hello experts,

I'm a very beginner with gsap. I'm facing a problem while I'm using animation with split text plugin. If I apply css to my body tag direction:rtl;  the animated text are not behaving , as the normal text do.

I created a demo. please take a look, when I use direction rtl to my body tag, animated text are not behaving the right way, look at the h2 tag. Also if I apply text-transform: capitalize; property to my animated text, the whole line getting uppercase. How can I solve this.

I'll be very thankful if anyone help me about this.

Thanks in advance

See the Pen MWzxdvo by Mahabub-Hossain-the-selector (@Mahabub-Hossain-the-selector) on CodePen

Link to comment
Share on other sites

  • Mahabub Hossain changed the title to rtl problem while using text animation with split text plugin

Hi,

 

Check this thread and the one linked on it

 

 

 

Finally I saw that you created the exact same thread again. Please don't duplicate threads, we do our best to answer back in less than 24 hours, but on weekends we expect a bit more patience on the subject.

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

Hi,

 

A few things. I noticed that in your codepen example you didn't applied dir="rtl" in the attributes. Adding direction in your CSS might not be enough. I worked in some projects with a company in Saudi Arabia for a few years and, while we never used SplitText we always used the attribute in the body tag and then cascading it to the different elements when needed.

 

Also, while we understand that there are deadlines and requirements, please try to understand that it's Sunday and we have other activities and plans, so posting many replies won't have any effect whatsoever. Please be patient and try different alternatives to solve the issue. Unfortunately I'm not in front of my computer now so I can't do a lot from my phone.

 

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

Many many thanks for your reply. I added it to the css in the body tag body {
  font-family: "Signika Negative", sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0 20px;
  direction: rtl;
}
I'll be glad if you solve this problem whenever you get time. Have a great day!

Thanks again

Link to comment
Share on other sites

Hi,

 

The result you are getting in the updated version of your codepen example is the exact same result as in this codepen by @mikel

See the Pen rbwBeG by mikeK (@mikeK) on CodePen

 

This is a fork of your codepen with the direction attribute in the body tag:

See the Pen jOQRLjE by GreenSock (@GreenSock) on CodePen

 

Beyond that, as it has been explained already by Jack in this thread and another thread that was linked in a previous post of mine:

 

This is just the current status of what SplitText can do in this subject, so beyond this there is not a lot we can do.

 

Finally, please stop creating more threads about the same subject (you already have created 3), and responses have been provided in this one as well as resources with explanations with the way things work and the limitations on the subject.

 

Hopefully this helps.

Happy Tweening!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...