Flickr API

Developer
Size
2,456 Kb
Views
24,288

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 Previews

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; } }); });
})();
Flickr API - Script Codes
Flickr API - Script Codes
Home Page Home
Developer Juan Vargas
Username juanv911
Uploaded October 14, 2022
Rating 3
Size 2,456 Kb
Views 24,288
Do you need developer help for Flickr API?

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!

Juan Vargas (juanv911) 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!