Issue #2026đź’¬ AnsweredOpened May 21, 2019by alikabeer321 reactions

Style manager css functions (for example transform: rotate(90deg)) accepts only one parameter

Quick answerby adamyarger❤ 1

@alikabeer32 I ran into the same problem before, you have to set the defaults value for translateY and translateX since the transform property in css is shared across both translateX and translateY. for example grapes outputs transform: translateY(40px) translateX(0); Here's an example of how you could pass it through...

Read full answer below ↓

Question

I would like to provide an option for the css function translate(x,y) but the addProperty parameter functionName accepts only one parameter as input. I tried to use translateX() and translateY() but they don't work simultaneously. I'd be grateful if someone could maybe tell me some other method to get the desired effect.

Answers (2)

adamyarger• July 12, 2019

@alikabeer32 I ran into the same problem before, you have to set the defaults value for translateY and translateX since the transform property in css is shared across both translateX and translateY. for example grapes outputs transform: translateY(40px) translateX(0); Here's an example of how you c...

alikabeer32• July 13, 2019

Yes! It was the perfect solution. Thank you !

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.