An AngularJS directive of Twitter's Embedded Timeline with support for custom CSS. Used at the UserApp Dashboard.
CSS Customized Twitter Timeline
- AngularJS
- jQuery
- A Twitter Widget Id (https://twitter.com/settings/widgets/new)
- Include the directive in your app
- Go to https://twitter.com/settings/widgets/new and create a new widget (timeline)
- From the generated code, copy the Widget Id inside
data-widget-id="XXXXXXXXXXXXX"
- Add this line to your HTML
<div twitter-timeline="TWITTER-WIDGET-ID" auto-resize="true" css-url="path/to/custom.css" data-tweet-limit="5">Loading tweets...</div>
<div twitter-timeline="TWITTER-WIDGET-ID" auto-resize="true" css-url="path/to/custom.css" data-tweet-limit="5">Loading tweets...</div>
-
twitter-timeline
The Widget Id, get one here: https://twitter.com/settings/widgets/new. -
auto-resize
If true, the div will resize to the same height as the iframe's content (the timeline). -
css-url
The url to the CSS file that you want to apply on the timeline. -
data-tweet-limit
Max number of tweets to show. For more information on custom attributes, check out the documentation for Embedded Twitter Timelines: https://dev.twitter.com/docs/embedded-timelines.