Skip to content

eHanlin/ngEhAdSlider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngEhAdSlider

The ad slider is like gif feature.

Install

bower install ng-eh-ad-slider

Install node modules

npm install

Dependencies

  • angular

Support

  • IE8+
  • chrome
  • firefox

Usage

html

<div style="width:250px;" time="time" ng-eh-ad-slider data="ads" target="_blank"></div>

js

$scope.ads = [{
  photo:"2670594645_c521fd3dbd_n.jpg",
  url:"https://www.flickr.com/photos/tobbymailbox/2670594645/in/photolist-54ZuYD-54ZuKg-hK9MhM-4utGZs-hKahe5"
},{
  photo:"sunset_chimneysP9166348.jpg",
  url:"https://www.flickr.com/photos/hysaint/2291338108/in/photolist-54ZuYD-54ZuKg-hK9MhM-4utGZs-hKahe5/"
}];
$scope.time = 3000

Attributes

####target

target="_blank"

####photoPath

photo-path="http://example.com/"

DEMO

gulp server

Build

gulp