Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how 2 stop gif loop jsx

CAKeyframeAnimation *animation = [CAKeyframeAnimation animationWithKeyPath:@"contents"];
    ...
animation.repeatCount = loopCount == 0 ? 0 : loopCount; // <-- fix for single play gif from joshbedo
animation.fillMode = @"forwards"; // <-- insert this line to prevent the image disappearing after animation
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stop #gif #loop #jsx
ADD COMMENT
Topic
Name
5+2 =