CSS transition fade in

前端 未结 4 1924
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 02:36

So I have used CSS transitions before but I have a unique case with this one. I am writing a custom plugin for creating modals. Essentially I create a div on the fly

4条回答
  •  醉话见心
    2020-12-03 03:15

    I believe you could addClass to the element. But either way you'd have to use Jquery or reg JS

    div {
      opacity:0;
      transition:opacity 1s linear;*
    }
    div.SomeClass {
      opacity:1;
    }
    

提交回复
热议问题