Tumblr API

Developer
Size
2,436 Kb
Views
22,264

How do I make an tumblr api?

Display Tumblr Photo posts into Masonry layout.. What is a tumblr api? How do you make a tumblr api? This script and codes were developed by Juan Vargas on 14 October 2022, Friday.

Tumblr API Previews

Tumblr API - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tumblr API</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="menu"> <ul> <li class="active"><a>Home</a></li> <li><a>Audio</a></li> <li><a>Video</a></li> <li><a>Photo</a></li> <li><a>Text</a></li> </ul> </div>
<div class="container">
<div id="posts"></div>
</div>
</body> <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>

Tumblr API - Script Codes CSS Codes

body { background:#f2f2f2; padding:0px; margin:0px; font-family:Arial; font-size:13px; color:#777;
}
h1,h2,h3,h4,h5 { margin:0px; padding:0px;
}
p { line-height:25px;
}
a { cursor:pointer; text-decoration:none;
}
.menu { background:white; border-bottom:solid 2px #e5e5e5; height:60px;
}
.menu ul { width:980px; margin:0px auto; padding:0px;
}
.menu ul li{ float:left; list-style:none; display:inline;
}
.menu ul li.active a{ border-bottom:solid 2px dodgerblue; color:dodgerblue;
}
.menu ul li a{ height:60px; line-height:60px; padding:0 10px; display:block; color:grey;
}
.menu ul li a:hover{ color:dodgerblue;
}
.container { width:980px; margin: 0 auto; margin-top:15px;
}
.container #posts .post { width:270px; float:left; background: #fff; border: solid 1px #eee; padding:12px; margin:0 15px 15px 0; border-radius:3px;
}
.container #posts .post:hover img{ opacity:.7;
}
.container #posts .post img { width:100%;
}

Tumblr API - Script Codes JS Codes

var api_key = 'B5Kb46SjUOGxT9WlYekcs3izcwzMfAlR5ucf8Xvic7MrbsZMxP';
var limit = '20';
$.getJSON('https://api.tumblr.com/v2/blog/festus912.tumblr.com/posts/photo?limit=' + limit + '&api_key=' + api_key + '&callback=?', function(data) { $.each(data.response.posts, function(i, posts) { var image = $("<img/>").attr("src",posts.photos[0].alt_sizes[0].url); var item = $("<div class='post'>").append(image); var $container = $("#posts"); var $item = $(item); $container.append($item).imagesLoaded(function(){ $container.masonry().masonry( 'appended', $item).masonry(); }); });
});
Tumblr API - Script Codes
Tumblr API - Script Codes
Home Page Home
Developer Juan Vargas
Username juanv911
Uploaded October 14, 2022
Rating 3.5
Size 2,436 Kb
Views 22,264
Do you need developer help for Tumblr 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 web content 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!