Just what you need to output a Twitter feed for a chosen account.
Current version: 1.0 Stable
Demonstration
-
Default
Show usage -
Template support
Show usageMatthieu Aussaguel @mattaussaguel
-
Custom events and animations
Show usage
Basic Usage
Basic HTML
<div id="feed"></div>
Basic Initialization
$(function() {
$('#feed').miniFeed({
username: 'mattaussaguel'
});
});
Options
-
username (string)
Twitter account username.
Default value is 'mattaussaguel' Show example -
limit (insteger)
Number of tweets to be displayed.
Default value is 6 Show example -
template (string)
Tweet template format.
Default value is '{avatar}{tweet}{time}' Show example -
introText (string)
Text to prepend to every tweet.
Default value is null Show example -
outroText (string)
Text to append to every tweet.
Default value is null Show example -
listClass (string)
CSS class name added to the list generated.
Default value is 'tweet-list' Show example -
firstClass (string)
CSS class name added to the first tweet element.
Default value is 'first' Show example -
lastClass (string)
CSS class name added to the last tweet element.
Default value is 'last' Show example -
avatarSize (string)
Avatar size in pixels.
Default value is '48' Show example -
avatarClass (string)
Avatar CSS class name.
Default value is 'tweet-avatar' Show example -
tweetClass (string)
CSS class name added the generated text wrapper.
Default value is 'tweet-text' Show example -
hideRetweets (boolean)
Hide retweets.
Default value is false Show example -
hideReplies (boolean)
Hide tweet replies.
Default value is false Show example -
timeFormat (string)
Time format. Possible values: 'normal' or 'elapsed'.
Default value is 'relative' Show example -
timeClass (string)
CSS class added to the time wrapper element.
Default value is 'tweet-time' Show example -
onLoad (function)
Called when the tweets are loading.
Default value is empty Show example -
onLoaded (function)
Called when the feed is fully loaded.
Default value is empty Show example
Connect
About
Matthieu Aussaguel
I am a Web Developer currently working at Envato as part of the Marketplace dev team in Melbourne, Australia. I focus mostly on Ruby/Rails technologies but I also enjoy coding in CoffeeScript in my spare time. Head over to my personal website and my Github page for more info about me.
Follow @mattaussaguel