css - SASS - When Class is Activated - Change Another -


in sass file have styling slick carousel , loading spinner.

when class slick-initialized appears possible set display:none on spinner.

for example - from:

slick.slick-initialized {   display: block; } 

to like:

slick.slick-initialized {       display: block;        &.spinner { display none }; } 

where have:

<div class="row">        <div class="spinner"></div>        <slick init-onload=true data="qnew" dots=true arrows=false>         <div class=“tile" ng-repeat="question in questionsnew">           <span ng-bind-html="question.question"></span>         </div>       </slick>  </div> 

if .spinner element placed after .slick element

you can write scss

scss

 slick.slick-initialized {           display: block;           + .spinner { display none };     } 

html

<div class="row">               <slick init-onload=true data="qnew" dots=true arrows=false>         <div class=“tile" ng-repeat="question in questionsnew">           <span ng-bind-html="question.question"></span>         </div>       </slick>     <div class="spinner"></div>  </div> 

place ..spinner element after slick element , use above scss


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -