Skip to content

An AngularJS directive of Twitter's Embedded Timeline with support for custom CSS.

License

Notifications You must be signed in to change notification settings

pkdevbox/twitter-timeline-angularjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Timeline Directive

An AngularJS directive of Twitter's Embedded Timeline with support for custom CSS. Used at the UserApp Dashboard.

Demo

CSS Customized Twitter Timeline

Requirements

Getting Started

  1. Include the directive in your app
  2. Go to https://twitter.com/settings/widgets/new and create a new widget (timeline)
  3. From the generated code, copy the Widget Id inside data-widget-id="XXXXXXXXXXXXX"
  4. 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>

Usage

<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.

About

An AngularJS directive of Twitter's Embedded Timeline with support for custom CSS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 40.4%
  • CSS 37.4%
  • HTML 22.2%