79460771

Date: 2025-02-23 06:20:32
Score: 0.5
Natty:
Report link

You can set transform attribute of the element to rotate(0). Something like below should handle your case:

var angle = bento_box_wrapper.style.transform !== 'rotate(45deg)' ? 45 : 0;
bento_box_wrapper.style.transform = 'rotate(' + angle + 'deg)';
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aManFromEarth