How to pass props to the canvas? #68
-
|
As the documentation says, the props of Is there any way to pass a prop (for example a style) to the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Hi @marcopiii .your-class-name > canvas {
outline: 2px solid green;
}<AnimateCC
animationName="lishtml5"
composition="C1475B64B160904BB90B34246A5FF54B"
paused={paused}
className="your-class-name"
/> |
Beta Was this translation helpful? Give feedback.
-
|
@bibixx thanks for the clarification. |
Beta Was this translation helpful? Give feedback.
Hi @marcopiii
Currently there is no way to pass any additional props to the
canvaselement.To change it's styling (which isn't recommended as it may break some user interactions, eg. on click actions defined inside Adobe Animate editor) I'd suggest to create a css class and in it define the styling for canvas.