I am new to coding, so I apologize if this is a silly question. I've tried searching for answers, but can't figure it out. I am trying to make an image move to a random position and rotate a random number of degrees on a page. I have the position working, but the rotation does not work:
<?php
$Racism_image= 'img1.png';
$Racism_top= rand(0, 700);
$Racism_left= rand(0,1500);
$Racism_rot= rand(0,360);
?>
<div class= 'racism'>
<img src= "<?php echo $Racism_image?>"
style="width:<?php echo $Racism_width;?>px;
padding-top:<?php echo $Racism_top;?>px;
padding-left:<?php echo $Racism_left;?>px;"
transform= "rotate (<?php echo $Racism_rot;?>deg);"
/>
</div>
Can anyone point me in the right direction? Much appreciated!