Flickr API
How do I make an flickr api?
Retrieve Flickr tagged photos into a Masonry Layout. What is a flickr api? How do you make a flickr api? This script and codes were developed by Juan Vargas on 14 October 2022, Friday.
Flickr API - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flickr API</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.getJSON demo</title> <script src="//code.jquery.com/jquery-1.10.2.js"></script> </head> <body> <div id="images"></div> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://rawgithub.com/desandro/masonry/v2.1.08/jquery.masonry.js'></script>
<script src='https://imagesloaded.desandro.com/imagesloaded.pkgd.js'></script> <script src="js/index.js"></script>
</body>
</html>
Flickr API - Script Codes CSS Codes
body { font-family: sans-serif; margin: 0; background: #f2f2f2; margin:20px;
}
.post:hover img{ opacity:.7;
}
h1 { text-align: center; margin-top: 50px;
}
p { text-align: center; margin-bottom:60px;
}
h4{ text-align:center; line-height:80px; font-weight:normal;
}
.masonry { /* Masonry container */ -webkit-column-count: 4; -moz-column-count:4; column-count: 4; -webkit-column-gap: 1em; -moz-column-gap: 1em; column-gap: 1em; margin: 1.5em; padding: 0; -moz-column-gap: 1.5em; -webkit-column-gap: 1.5em; column-gap: 1.5em; font-size: .85em;
}
.post { display: inline-block; background: #fff; padding: 1em; margin: 0 0 1.5em; width: 100%; -webkit-transition:1s ease all; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-shadow: 2px 2px 4px 0 #ccc;
}
.post img{max-width:100%;}
@media only screen and (max-width: 320px) { .masonry { -moz-column-count: 1; -webkit-column-count: 1; column-count: 1; }
}
@media only screen and (min-width: 321px) and (max-width: 768px){ #images { -moz-column-count: 2; -webkit-column-count: 2; column-count: 2; }
}
@media only screen and (min-width: 769px) and (max-width: 1200px){ #images { -moz-column-count: 3; -webkit-column-count: 3; column-count: 3; }
}
@media only screen and (min-width: 1201px) { #images { -moz-column-count: 4; -webkit-column-count: 4; column-count: 4; }
}
Flickr API - Script Codes JS Codes
(function() { var flickerAPI = "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?"; $.getJSON( flickerAPI, { tags: "nature,mountain,river,forest,woods", tagmode: "any", format: "json" }) .done(function( data ) { $.each( data.items, function( i, item ) { var image = $("<img>").attr( "src", item.media.m.replace('_m', '_z')); var post = $("<div class='post'>").append(image).appendTo("#images"); if ( i === 50 ) { return false; } }); });
})();
Developer | Juan Vargas |
Username | juanv911 |
Uploaded | October 14, 2022 |
Rating | 3 |
Size | 2,456 Kb |
Views | 24,288 |
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!
Name | Size |
Question and Answer | 2,865 Kb |
Tumblr API | 2,436 Kb |
Envato API - New API Version | 4,159 Kb |
Reddit API | 4,397 Kb |
Navigation Menu | 2,839 Kb |
Foursquare API - Search Places | 1,913 Kb |
Dribbble API | 3,105 Kb |
Base | 2,606 Kb |
A Pen by Juan Vargas | 2,315 Kb |
Reddit API | 3,721 Kb |
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!
Name | Username | Size |
Tail rose iris lined | Kbrtrm | 1,846 Kb |
Fullscreen audio play button | 72 | 2,148 Kb |
Toolbar | Onsen | 5,414 Kb |
Flex Chart | James_zedd | 4,111 Kb |
Email Marketing Mock | Kristenzirkler | 8,224 Kb |
WRENCH - STAFF | Lolita-adams | 1,608 Kb |
Responsive scrolling text | Ashdurham | 2,259 Kb |
Canvas Background Effect | Sonick | 3,513 Kb |
Sticky footer testing | 75th | 1,649 Kb |
Kudos Please | TimPietrusky | 6,624 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!