I deduce articles in a cycle:
I want each element to have a random css transform: rotate() property transform: rotate() from -2 to +2 deg, tell me how this can be implemented?
Here is the output code for the articles:
<?php foreach ($articles as $article): ?> <div class="article"> <div class="article_title"><?php echo $article['title']; ?></div> <div class="article_img"> <img src="<?php echo $article['img1']; ?>"> </div> <a href=page_show_ads.php?id_ads=<?php echo $article["article_id"]; ?> class="article_more">Подробнее</a> </div> <?php endforeach; ?>