Small hint: use the spread selector to make obvious which styles are changed:
const normalStyle = { margin: '50px', padding: '20px', borderRadius: '10px', width: '100px', height: '100px', background: '#06f2ff', boxShadow: '5px 5px 5px #04bd57', transition: '1s, transform 2s', }; const transformedStyle = { ...normalStyle, width: '150px', height: '150px', background: '#06ff76', boxShadow: '5px 5px 5px #3085d6', transform: 'rotate(180deg)', };
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Small hint: use the spread selector to make obvious which styles are changed: