How to get UIScrollView contentOffset during an animation

I am trying to get the contentOffset property of a UIScrollView in the middle of a setContentOffset animation. Note I am not using the animated property of the method, but instead enclosing the...

Animating a CALayer's mask size change

I have a UIView subclass which uses a CAShapeLayer mask on its CALayer. The mask uses a distinct shape, with three rounded corners and a cut out rectangle in the remaining corner. When I resize my...

How To Sync CSS Animations Across Multiple Elements?

I have two elements on a page that I'd like to animate via CSS (specifically, -webkit-animation). The animation itself simply bounces an element up and down. One element is always shown and...

Can't touch during animation (Block Animation)

I have a View with UIButton, UITextField, and a UIImageView for Background. in viewDidLoad i try animate UIImageView from alpha=0 to alpha =1 using block. it's pretty basic, here's the...

I do not want animation in the begin updates, end updates block for uitableview?

I have a UITableView that is using a custom table cell and each cell has a UIWebView. Because UIWebView took along time to load, i want to avoid reloading them at all cost. In some situations, I...

Completion block for popViewController

When dismissing a modal view controller using dismissViewController, there is the option to provide a completion block. Is there a similar equivalent for popViewController? The completion argument...

NSFetchedResultsController: Fetch in a background thread

I have a more or less basic UITableViewController with a NSFetchedResultsController. The UITableViewController is pushed onto the navigationController's stack. But the push animation isn't smooth...

JavaScript->CSS: display="";?

EDIT: For those of you who don't seem to understand what I mean, I was able to find another question on the idea of a default/initial/natural display here. In JavaScript, one can set the default...

how to set animation curve when using keyframe animation in ios?

How to set animation curve when using UIView's keyframe animation : animateKeyframesWithDuration:delay:options:animations:completion: Whatever I do in the animation block seems to be linear...

Block @ not recognized in CSS3 in Visual Studio 2010

i am working on css3 in vs2010. Trying some animation. but intellisense is giving error "Unrecognized @ block type" and " keyframe is not a known css property name". Below is some i have tried. ...

UIView ignoring setHidden when in animation block

I have this code on an UIView subclass: override var hidden: Bool { willSet { DDLogDebug("Will set hidden=\(String(newValue)) on \(item?.name))") } didSet { ...

Angular2 Animation - Animate opacity, but not display-attribute

I want to show and hide my modal component with Angular2 animations. At the moment this is my code: animations: [ trigger('modalState', [ state('true', style({ display: 'block', ...

UITextField text jumps when animating width constraint

I'm experiencing a glitch where my UITextField's text jumps to its final position (it doesn't animate) when animating the textfield's width constraint. Take a look at this gif: When the "Grow"...

Adding and removing class click function in Angular 2 Service

I'm trying to use CSS3 animation in my template, but I'm trying to find a away to add and remove class using (click)='function()' like jQuery way. Question is how can I do the function below which...

Temporarily disable (ignore / not display) the animation on a complex QML component

Is it possible to temporarily disable (ignore / not display) the animation on a complex QML component until a certain point in time? And later activate the animation and work as usual. For...

SceneKit keyed blend shape animation imported from Collada (.dae) file (created in Maya) not playing

I'm using Maya to create animations to use in SceneKit. I'm exporting as COLLADA file (.dae) using Maya's built-in FBX DAE exporter. Animations on the node transform all work perfectly. For...

Hero animation not working properly?

I am new in Flutter. Today I created splash screen and login screen. Then I want to animate my logo from splash screen -> login screen. But when I run code, the animation not working here is my...

TypeScript and tweaking values (wait for refresh until file has been compiled)

I'm in love with TypeScript, but I don't know really how to handle tweaking of values. I'm talking about subtle changes, changes in i.e. the feel of touch controls or animations. While working on...

Why does Chrome run transform animation on the main thread in some cases, and not in others?

What is the criteria? In the following example, I am animating CSS transform, and when you click anywhere the animation is blocked by the 1-second-long loop. Why is the animation...

What is the correct way to set the new coordinates of a view after translation animation in react-native?

I am trying to run a few simple animations using react-native-animatable library. (But I believe the question should be generic to any react animations so adding other tags as well.) The problem...

How update a SwiftUI List without animation

I want to update a SwiftUI List without any insert animation. My List is getting its data from an @EnvironmentObject I already tried to wrap the List itself and the PassthroughSubject.send() in a...

Animated plotly gauge plot with changing colors and text annotation

I have a gauge plot I want to animate (following this tutorial), with the color of the plot changing according to the current value. I also want an annotation* which displays the current value of...

SwiftUI withAnimation completion callback

I have a swiftUI animation based on some state: withAnimation(.linear(duration: 0.1)) { self.someState = newState } Is there any callback which is triggered when the above animation...

lottie-ios animation completion block getting called immediately

I'm using lottie-ios (3.1.6) to implement a sort of loading indicator while an API request is being sent. The animation JSON is the entire beginning-to-ending flow, which I have playing from the...

gganimate County map of census block groups float around between states

This may be difficult, because I cannot share my data, and when I tried to reproduce the error in another example it did not work. I am attempting to make a gganimate figure of census block groups...

Creating a static pie chart with CSS

I am attempting to create a pie chart using css and html. I would simply be displaying a few static numbers therefore I am trying to keep it relatively simple and not use any animations. I'm...

Lottie animationView completion block not getting executed

animationView!.play(fromProgress: AnimationProgressTime(y), toProgress: AnimationProgressTime(y), loopMode: LottieLoopMode.playOnce, completion: { (finished) in if...

performBatchUpdates completion handler is not called when there is section operation involved

So far, here's are the code snippets that almost work for NSFetchedResultsController + UICollectionView, based on the information provided https://developer.apple.com/videos/play/wwdc2018/225...

Is there a way to extract the current frame from a plotly figure?

Basically, I have a plotly animation which uses a slider and pause/play buttons to go through a dataset. I want to extract the number of the current frame (i.e., the current index in the...

A whole non-trivial Jetpack Compose-backed app with very few (one?) activities?

With Jetpack Compose, is it a viable way to develop an app by having a single Activity only, and have Compose manage navigation between @Composables? When would it be necessary to add more...

Relevant tags