Mac Bar

Developer
Size
2,204 Kb
Views
52,624

How do I make an mac bar?

What is a mac bar? How do you make a mac bar? This script and codes were developed by Yang Li on 13 July 2022, Wednesday.

Mac Bar Previews

Mac Bar - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mac Bar</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="macBar"> <img id="one" src="https://upload.wikimedia.org/wikipedia/commons/8/87/Google_Chrome_icon_(2011).png" alt="" /> <img id="two" src="https://cdn0.iconfinder.com/data/icons/yooicons_set01_socialbookmarks/256/social_facebook_box_blue.png" alt="" /> <img id="three" src="http://megaicons.net/static/img/icons_sizes/57/145/512/communication-gmail-icon.png" alt="" /> <img id="four" src="http://icons.iconarchive.com/icons/igh0zt/ios7-style-metro-ui/512/MetroUI-Office-Office-2013-icon.png" alt="" /> <img id="five" src="https://www.seeklogo.net/wp-content/uploads/2011/08/twitter-bird-icon-logo-vector-400x400.png" alt="" />
</div>
<img id="macScreen" src="http://dynamass.com/PLEX/plex-preview.png" alt="" /> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Mac Bar - Script Codes CSS Codes

#macBar { display: inline-block; position: relative; margin: 30%;
}
/* Students should write the CSS below this point */
#macBar img { width: 80px; height: 80px; position: absolute;
}
#two { left: 100px;
}
#three { left: 200px;
}
#four { left: 300px;
}
#five { left: 400px;
}
#macScreen { margin-left: -25%; cursor: pointer;
}

Mac Bar - Script Codes JS Codes

// This is code for students to write
$("#macBar img").hover( function() { $(this).animate({top: "-20"}); $(this).animate({top: "0"}); $("#macScreen").fadeIn("slow"); }
)
$("#macScreen").click(function(){ $(this).fadeOut("slow");
})
Mac Bar - Script Codes
Mac Bar - Script Codes
Home Page Home
Developer Yang Li
Username aussieyang
Uploaded July 13, 2022
Rating 3
Size 2,204 Kb
Views 52,624
Do you need developer help for Mac Bar?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Yang Li (aussieyang) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!