Rendering a Star Rating System using angularjs

后端 未结 7 1162
执笔经年
执笔经年 2020-12-08 17:54

My app is in this Fiddle I need to render a star rating system dynamically from a http service, where the current stars and maximum stars can vary with each case.

Is

7条回答
  •  情深已故
    2020-12-08 18:05

    let app = angular.module ('myapp',[])
    -
    ##star Rating Styles 
    ----------------------*/
    
    .stars {
      padding-top: 10px;
      width: 100%;
      display: inline-block;
    }
    span.glyphicon {
      padding: 5px;
    }
    .glyphicon-star-empty {
      color: #9d9d9d;
    }
    .glyphicon-star-empty,
    .glyphicon-star {
      font-size: 18px;
    }
    .glyphicon-star {
      color: #FD4;
      transition: all .25s;
    }
    .glyphicon-star:hover {
      transform: rotate(-15deg) scale(1.3);
    }
    
    
    

提交回复
热议问题