标签: flip

使用纯 CSS 进行 3d 转换

我正在尝试用纯 css重建。而我已经做到了这一点。但是,正如您从 Flash 版本中看到的那样,当封面出现时,其他 div 会为悬停的 div 腾出空间。

我试图在 auto 上设置宽度并在该特定 div 上设置过渡属性,但没有运气。我还尝试在悬停之前将 div 的宽度设置为 0,并在悬停时将其设置为 300px,这确实有效,但它并没有真正设置动画..

这可能很简单,也可能不简单,但无论哪种方式,都能朝着正确的方向推动!

谢谢。

html css flip

5
推荐指数
1
解决办法
593
查看次数

如何在 .net Web 应用程序中水平翻转图像

我需要在我的 VB.net Web 应用程序中水平翻转位图图像。

IE

在此处输入图片说明

我真的四处搜索,但没有遇到任何简单的 vb.net 方法。一个存在吗?

vb.net asp.net image flip

5
推荐指数
1
解决办法
2228
查看次数

Libgdx 中的卡片翻转动画

我如何在 Libgdx 中实现卡片翻转动画(以某个角度翻转)——我使用了sprite.flip(boolean x, boolean y)但无法达到预期的结果。

我想做类似的事情:

http://developer.android.com/training/animation/cardflip.html

3d flip libgdx

5
推荐指数
2
解决办法
1760
查看次数

iOS - WebRTC 前置摄像头 - 视频水平翻转

WebRTC 视频在前置摄像头中水平翻转,因此在接收端也显示此翻转视频。但是后置摄像头作为摄像头应用程序运行良好。

如何改变前置摄像头的这种翻转行为,从而改变在远端接收的捕获帧?

flip ios webrtc front-camera

5
推荐指数
1
解决办法
2182
查看次数

垂直翻转图像 (Swift)

如何垂直(向上/向下)翻转 UIImage?这是之前问过的问题...

我在图像视图中显示图像,并且可以在图像中绘制。对于擦除功能,我在 CAShapeLayer 中使用了 UIBezierpath。CAShapeLayer 的strokeColor 是UIColor(patternImage: background).cgColor,其中background 是与image view 中的图片相同的图片。背景竟然是颠倒的。从其他 Stackoverflow 帖子中我了解到这是因为 UIKit 和 Core Graphics 为其坐标系统使用了另一个原点。

我尝试了 Stackoverflow 帖子中的一些解决方案来翻转我的背景图像。这些都没有工作:

UIImage* sourceImage = [UIImage imageNamed:@"whatever.png"];
UIImage* flippedImage = [UIImage imageWithCGImage:sourceImage.CGImage 
                                            scale:sourceImage.scale
                                      orientation:UIImageOrientationUpMirrored];
Run Code Online (Sandbox Code Playgroud)
let ciimage: CIImage = CIImage(CGImage: imagenInicial.CGImage!)
let rotada3 = ciimage.imageByApplyingTransform(CGAffineTransformMakeScale(1, -1))
Run Code Online (Sandbox Code Playgroud)
func flipImageVertically() -> UIImage? {
    UIGraphicsBeginImageContextWithOptions(size, false, scale)
    let bitmap = UIGraphicsGetCurrentContext()!

    bitmap.translateBy(x: size.width / 2, y: size.height / 2)
    bitmap.scaleBy(x: 1.0, y: -1.0)

    bitmap.translateBy(x: -size.width / …
Run Code Online (Sandbox Code Playgroud)

flip orientation uiimage ios swift

5
推荐指数
1
解决办法
3025
查看次数

如何有效地沿对角线翻转numpy数组?

假设我有以下数组(请注意,在 [2,0] 位置有一个 1,在 [3,4] 位置有一个 2):

[0, 0, 0, 0, 0]
[0, 0, 0, 0, 0]
[1, 0, 0, 0, 0]
[0, 0, 0, 0, 2]
[0, 0, 0, 0, 0]
Run Code Online (Sandbox Code Playgroud)

我想有效地沿对角线翻转它,以便:

[0, 0, 1, 0, 0]
[0, 0, 0, 0, 0]
[0, 0, 0, 0, 0]
[0, 0, 0, 0, 0]
[0, 0, 0, 2, 0]
Run Code Online (Sandbox Code Playgroud)

这不适用于 fliplr 或 rot90 或 flipud。想要有效的答案而不仅仅是答案,因为不幸的是,这不是在这么小的矩阵上执行的。

python numpy flip

5
推荐指数
1
解决办法
3426
查看次数

无法分配self.delegate它会产生无法识别的选择器

我是一个新的iOS和我在落实麻烦@protocol很抱歉,如果你认为这是一件容易的事情..

我一直在四处寻找stackoverflow.com,该网也尝试叔叔谷歌了一会儿,我决定问这里...

其主要思想是调用从TopViewController一个MyViewController,做翻转动画我创建协议开始..

    // This is my Delegate header
    // MyViewController.h

    @protocol MyViewControllerlDelegate

    - (void) myViewControllerDidFinish;

    @end

    @interface MyViewController : UIViewController 
    {
     id <MyViewControllerlDelegate> delegate;
    }

    @property (nonatomic, assign) id <MyViewControllerlDelegate> delegate;

    - (IBAction) done;

    @end
Run Code Online (Sandbox Code Playgroud)

以下是实施:

    // MyViewController.m

    #import "MyViewController.h"

    @implementation MyViewController

    @synthesize delegate;

    // Another Code above

    - (IBAction)done 
    {
     [self.delegate myViewControllerDidFinish];
    }

    // Another Code Below

    @end
Run Code Online (Sandbox Code Playgroud)

我使用上面的对象从下面的另一个视图调用并在其中添加翻转过渡:

// TopViewController.h

#import "MyViewController.h"

@class MapScrollView;

@interface TopViewController : UIViewController <UIScrollViewDelegate,MyViewControllerlDelegate> 
{
    UIScrollView *topScrollView;
    UIButton *infoButton;
} …
Run Code Online (Sandbox Code Playgroud)

delegates protocols objective-c flip ios

4
推荐指数
1
解决办法
1万
查看次数

UIVIew翻转垂直动画

鉴于:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; 
[UIView setAnimationDuration:.5];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:card cache:NO];
 myPic = [UIImage UIImagenamed: @"mySecondImage.png"];
[UIView commitAnimations];[/CODE]
Run Code Online (Sandbox Code Playgroud)

通过翻转动画"myPic"从右向左动画.

我需要获得相同的动画,但是垂直.从顶部翻转或从底部翻转.我环顾四周,没有人真的有建议的工作模型.

我试过这个,但没有运气:

float duration = .5;
CABasicAnimation* animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.x"];
animation.fromValue = [NSNumber numberWithDouble:0.0f * M_PI];
animation.toValue = [NSNumber numberWithDouble:1.0f * M_PI];
animation.duration = duration;
animation.removedOnCompletion = NO;
animation.fillMode = kCAFillModeBoth;
animation.repeatCount =1;;
animation.beginTime = CACurrentMediaTime();
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
card.layer.anchorPoint = CGPointMake(0.5, 1.0);
[card.layer addAnimation:animation forKey:@"rotationX"];[/CODE]
Run Code Online (Sandbox Code Playgroud)

有什么输入?提前致谢.

iphone animation flip

4
推荐指数
1
解决办法
4028
查看次数

iOS - 带动画的程序化模态segue(如翻转)

我知道我可以在这样的代码中做一个模态segue:

[presentModalViewController:my_view, animated:YES];
Run Code Online (Sandbox Code Playgroud)

但是如何以编程方式指定淡入或水平/垂直翻转?

谢谢,Pachun

modal-dialog flip ios segue

4
推荐指数
1
解决办法
5007
查看次数

纯Javascript中的页面翻转效果

对于一个电子书阅读器webapp,我试图为电子书制作一个类似于书的浏览器,如iBooks for iPad和iPhone.

我发现了优秀的jQuery插件,这正是我试图达到的.唯一的问题是,它是一个jQuery插件,所以我不能使用它.怎么可能在纯Javascript中完成?

链接到jQuery页面翻转插件:转JS jQuery插件

javascript flip turnjs

4
推荐指数
2
解决办法
3万
查看次数