Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $results = $mysqli->query("SELECT * FROM centros WHERE estado = 1");
- foreach ($results as $centros){
- ?>
- <div id="port" class="portfolio valencia center" data-cat="valencia">
- <?php if ($centros['logo']== null) {
- echo "<img src="images/centros/cut.svg" class="imgCentro1">";
- }else {
- echo "<img src="images/centros/$logo" class="imgCentro1">";
- } ?>
- </div>
- <?php } ?>
- $( "#port" ).mouseenter(function() {
- $('.imgCentro1').css("transform"," rotate(-45deg)");
- $('.imgCentro1').css("transition","1s");
- });
- $( "#port" ).mouseleave(function() {
- $('.imgCentro1').css("transform"," rotate(0deg)");
- $('.imgCentro1').css("transition","1s");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement