transition

How is it possible to transition the position of items in a list without using transform or top/left

自古美人都是妖i 提交于 2019-12-04 15:41:48
The other day I stumbled onto an example that uses Vue.js, but my question is more about the CSS and HTML that Vue uses to achieve the transition between states. The cards temporarily get the class .shuffleMedium-move which adds a transition: transform 1s and the order of the nodes change in the DOM, but I don't understand why the transition occurs since the transform property never seems to get set and the items are positioned simply using float:left . I've been doing CSS for quite a while and I've always had to resort to using a combination of JavaScript position: absolute and transform to

[CALayer retain]: message sent to deallocated instance?

烈酒焚心 提交于 2019-12-04 14:11:56
In my app when I am switching views, after about the 4th time I switch views I get a crash that says: *** -[CALayer retain]: message sent to deallocated instance 0x6c4ba0 I have NSZombieEnabled in Xcode and it points me to this line whenever it switches views: [self.view removeFromSuperview]; Also if I do a backtrace of the (gdb) it gives me this: #0 0x37dd68a0 in ___forwarding___ () #1 0x37d31680 in __forwarding_prep_0___ () #2 0x37d1d026 in CFRetain () #3 0x37d26bb2 in +[__NSArrayI __new::] () #4 0x37d26acc in -[__NSPlaceholderArray initWithObjects:count:] () #5 0x3518e680 in -[UIView

How to make smooth frame animation in android?

跟風遠走 提交于 2019-12-04 13:51:40
问题 I made a frame animation. But the transitition between images is bad looking. How can I apply a crossfade effect to it ? When using TransitionDrawable i get the proper result but it stops after one execution. Any one has an idea how to resolve it? public void startAnimation() { if (logoAnimation != null) { if (logoAnimation.isRunning()) { logoAnimation.stop(); } logoAnimation.start(); } } private int setLogoAnimation(int animationID, int targetID) { imageView = (ImageView) window.findViewById

Changing leftBarButtonItem with flip transition?

别来无恙 提交于 2019-12-04 13:05:44
In my code I programmatically change leftBarButtonItem with a UIButton to a UIActivityIndicatorView, I would like to know how to perform a flip transition when changing, any idea ? Thanks a lot. Hmm.. I have a feeling that to do a flip transition, you need to have a UIView. So.. you could make a custom barButtonItem and add to it a flipView: UIView *flipView = [[UIView alloc] init....]; BarButtonItem *barbutton = [[BarButtonItem alloc] initWithCustomView:flipView]; then add your original view to the flipView, this can contain whatever you like... [flipView addSubview:<original view>]; Then to

d3.js v4 wacky link transition in collapsible tree example

坚强是说给别人听的谎言 提交于 2019-12-04 12:34:05
问题 If you play with the collapsible tree below you'll see that when you get to the end of the tree, and expand and collapse the nodes the lines are doing some wacky stuff and I am no entirely sure what drives the behavior or if my rewriting of enter link description here is completely off base. I went off a flat data structure and used stratify to transform it into a tree layout. The only issue so far is the line transitions...any thoughts? var data = [{ "name": "Hazer 5000", "parent": "CFO",

3d Navbar That Rotates

旧街凉风 提交于 2019-12-04 11:52:18
问题 I'm trying to create a 3d navbar using pure CSS with transforms, transitions and perspective. Here is my code: .navbar-fixed-bottom { background: transparent; } .navbar-perspective { width: 100%; height: 100%; position: relative; -webkit-perspective: 1100px; -moz-perspective: 1100px; perspective: 1100px; -webkit-perspective-origin: 50% 0; -moz-perspective-origin: 50% 0; perspective-origin: 50% 0; } .navbar-perspective > div { margin: 0 auto; position: relative; text-align: justify; -webkit

Angular 2 Material 2 Sidenav Toolbar collapse like Navigation Drawer

China☆狼群 提交于 2019-12-04 11:26:49
问题 I have a sidenav and a nested toolbar toolbar.html <md-sidenav-container fullscreen> <md-sidenav #sidenav mode="side" color="primary"> <md-toolbar color="primary"><span>Sidenav</span></md-toolbar> <button md-button class="sidenav-link" (click)="sidenav.close()"> <md-icon>home</md-icon><span class="title"> HOME</span> </button> <button md-button class="sidenav-link" (click)="sidenav.close()"> <md-icon>home</md-icon><span class="title"> HOME</span> </button> </md-sidenav> <app-toolbar [sidenav]

ffmpeg convert a series of images to video - with crossfade or any other transition between every two frames

做~自己de王妃 提交于 2019-12-04 11:21:22
I am currently able to convert a series of images to video, but I do also need to add transitions / animation in between them. String[] ffmpegCommand = {"/data/data/mypackage/app_bin/ffmpeg", "-y", "-qscale", "1", "-r", "" + framerate, "-i", "/data/data/mypackage/app_ipImg/image%3d.jpg", "-t", "" + (((total_images) * delay_of_each_frame_in_seconds) + 4), //"-s",heightwidth, "-vcodec", "libx264", "-s", "640x480", Environment.getExternalStorageDirectory() + "/photo_directory/myVideo.mp4"}; The above command is working for me to create video from image series But Now, I do want to add fade or

过渡---CSS3

风流意气都作罢 提交于 2019-12-04 10:36:14
过渡(transition)是CSS3中具有颠覆性的特征之一,我们可以在不使用 Flash 动画或 JavaScript 的情况下,当元素从一种样式变换为另一种样式时为元素添加效果。 过渡动画: 是从一个状态 渐渐的过渡到另外一个状态 帧动画:通过一帧一帧的画面按照固定顺序和速度播放。如电影胶片 在CSS3里使用transition可以实现补间动画(过渡效果),并且当前元素只要有“属性”发生变化时即存在两种状态(我们用A和B代指),就可以实现平滑的过渡,为了方便演示采用hover切换两种状态,但是并不仅仅局限于hover状态来实现过渡。 语法格式: transition: 要过渡的属性 花费时间 运动曲线 何时开始; 如果有多组属性变化,还是用逗号隔开。 属性 描述 CSS transition 简写属性,用于在一个属性中设置四个过渡属性。 3 transition-property 规定应用过渡的 CSS 属性的名称。 3 transition-duration 定义过渡效果花费的时间。默认是 0。 3 transition-timing-function 规定过渡效果的时间曲线。默认是 "ease"。 3 transition-delay 规定过渡效果何时开始。默认是 0。 3 如果想要所有的属性都变化过渡, 写一个all 就可以 transition-duration

博客入门--自定义博客主题

走远了吗. 提交于 2019-12-04 08:14:38
  对于以往博客网站已提出较多主题供用户使用,但对于海量用户而言其主题难免过于单一。   为突出博客主题个性化显示,目前已有第三方开源库(https://github.com/BNDong/Cnblogs-Theme-SimpleMemory)供大家使用。本文以 博客园 为例,实现自定义主题设置。 进入博客园设置页面 下载第三方库 。本文重要使用资源包中的.\src\style\base.min.css的样式资源(https://github.com/BNDong/Cnblogs-Theme-SimpleMemory)。其中包含详细的说明文档,供大家参考( https://bndong.github.io/Cnblogs-Theme-SimpleMemory/v1.1/#/Docs/Customization/config )。 设置 博客皮肤 为SimpleMemory。    页面定制css代码 ,并禁用模板默认css样式。    #EntryTag{margin-top:20px;font-size:9pt;color:gray}.topicListFooter{text-align:right;margin-right:10px;margin-top:10px}#divRefreshComments{text-align:right;margin-right:10px