标签: fading

如何使用JQuery添加淡入淡出或图像过渡效果?

<img>我的页面上只有一个元素.我src每隔7秒更改一次该图像的属性.

我每7秒看一次新图像,但如果我可以在加载新图像时添加一些淡入淡出或过渡效果会更好.

有些人有简单的脚本吗?

我不需要任何插件.这样做只需要一些线索或几行样本.

javascript jquery fading

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

是否可以更改Listview的FadingEdge的颜色?

我想说明ListView已经从周围的任何东西中消失了.默认情况下,它设置为ListView的任何颜色.我可以调整FadingEdge的方向和FadingEdge的大小,但不能调整颜色.可能吗?

android listview colors fading

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

Android ListView Edge Fading适用于2.2虚拟设备,但不适用于Samsung 2.2.1

在我的ListActivity上,当在Android 2.2虚拟设备上运行时,我得到了淡化边缘效果.但是,当我使用三星GIO与Android 2.2.1运行完全相同的应用程序时,我没有得到ListView边缘淡入淡出.可能是什么原因?下面是ListActivity中ListView的XML:

<ListView
    android:id="@+id/@android:list"
    android:fadingEdge="vertical"
    android:fadingEdgeLength="3mm"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@id/showMixHeader"/>
Run Code Online (Sandbox Code Playgroud)

android listview listactivity fading

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

使淡入淡出动画中的组框显示并消失

在下面的示例中,我不明白当选中/取消选中上部复选框时,如何使"实时更新"组框显示/消失.我正在寻找XAML中的快速淡入/淡出效果,但我有点迷失..

在此输入图像描述

<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    x:Class="WpfControlLibrary1.MainControl"
    x:Name="MultiVol" MinHeight="520.12" MinWidth="213">

    <Grid HorizontalAlignment="Stretch">
        <Grid.Background>
                <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
                    <GradientStop Color="White" Offset="0.966"/>
                    <GradientStop Color="#FFD7D4FF"/>
                </LinearGradientBrush>
        </Grid.Background>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <StackPanel x:Name="LayoutRoot" HorizontalAlignment="Stretch"  Grid.Row="0">

            <GroupBox Margin="8,0" BorderBrush="#FF88B1D8" HorizontalAlignment="Stretch" Height="99">
                <GroupBox.Header>
                    <WrapPanel>
                    <Label Content="General" Background="#00000000" Foreground="#FF0033FF" FontWeight="Bold" FontFamily="/WpfControlLibrary1;component/Fonts/#Tahoma" />    
                    </WrapPanel>
                </GroupBox.Header>

                <UniformGrid Columns="2">
                    <Label Content="RICs" />
                    <TextBox AcceptsReturn="False" AcceptsTab="True" AllowDrop="True" IsTabStop="True" />
                    <Label Content="Preference" />
                    <UniformGrid VerticalAlignment="Center" Columns="2" Rows="1">
                        <RadioButton GroupName="preference" Content="Exotic" IsChecked="False" />
                        <RadioButton …
Run Code Online (Sandbox Code Playgroud)

wpf animation visibility fading

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

在 ListView 中,是否可以只从一个边缘淡入元素?

我正在使用一个简单的列表视图并希望淡出一个边缘,而不是我目前正在使用的两个或四个:

<ListView
    android:id="@+id/main_feed"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:requiresFadingEdge="vertical"
    android:fadingEdgeLength="50dp" >
</ListView>
Run Code Online (Sandbox Code Playgroud)

我只想淡化一个边缘(底部边缘),但是在 requiresFadingEdge 中执行“垂直”或“水平”分别淡化顶部/底部或左侧/右侧。

有什么建议?

xml android listview styling fading

3
推荐指数
1
解决办法
1223
查看次数

使用ffmpeg在两个音频文件之间淡入淡出?

我有两个 mp3 文件,想将它们连接成一个新文件。但是,我只想要每个文件的一部分,我想在两者之间创建一个交叉淡入淡出。

例如,我想要 a.mp3 的前 3 分钟,然后在 5 秒内从 1:20 分钟标记(在 b.mp3 内)开始淡入到 b.mp3。

这是我想要的时间线插图:

时间线

因此,生成的文件的总长度将是 3:05 分钟加上 b.mp3 的长度减去 1:25 分钟,这归结为 b.mp3 的长度加上 1:40 分钟。

我对 ffmpeg 的源选择、映射和过滤器语法太缺乏经验,无法获得我想要的结果。例如,我可以对一个 mp3 文件应用淡入或淡出,但我不知道如何使这两个文件重叠,从而导致两个音频源之间出现淡入淡出。

只是为了清楚起见:我正在寻找一个命令行来执行此操作,即使用独立版本的 ffmpeg,我没有将 ffmpeg 用作应用程序或任何内容中的库。

audio ffmpeg filter fading cross-fade

3
推荐指数
1
解决办法
1479
查看次数

CSS 动画,自动幻灯片上的淡入淡出不透明度

我想制作一个幻灯片,其中图片通过淡入淡出不透明度过渡。它只是在屏幕上黯淡并切换到下一张图片。

我让它工作了,但添加了其他浏览器 webkit,它停止工作。似乎找不到我的错误.. 幻灯片仍然有效。

这是代码:

/* Fading animation in css */
.fade {
-webkit-animation-name: fade 5s;
animation-name: fade 5s;
-moz-animation: fade 5s;
-o-animation: fade 5s;
}

@-webkit-keyframes fade {
0% {opacity: 0.2} 
50% {opacity: 1}
100% {opacity:0.2}
}

@-moz-keyframes fade{
    0% {opacity: 0.2} 
  50% {opacity: 1}
  100% {opacity:0}  
}

@keyframes fade {
  0% {opacity: 0.2} 
  50% {opacity: 1}
  100%{opacity: 0.2}
    }
@-o-keyframes fade {
0% {opacity: 0.2} 
  50% {opacity: 1}
  100%{opacity: 0.2}

}

<div class="slideshowcontainer">
        <div class="slideshow fade">
            <img src="images/PSA.PNG"> …
Run Code Online (Sandbox Code Playgroud)

html css animation fading

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

如何仅在 Scrollview/Recyclerview 的底部添加淡入淡出边缘?

在此输入图像描述我用于requiresFadingEdge=true在底部添加淡入淡出效果,但问题是它也在顶部显示淡入淡出效果?如何在向下滚动时禁用顶部的淡入淡出效果?

我在底部附上了屏幕截图。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@color/grey">
  <android.support.v7.widget.RecyclerView
        android:id="@+id/list_recyclerview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingBottom="?attr/actionBarSize"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:spanCount="2"
        tools:itemCount="14"
        tools:layoutManager="android.support.v7.widget.GridLayoutManager"
        tools:listitem="@layout/layout_thermal_grid" />

 <View
        android:layout_width="match_parent"
        android:layout_height="@dimen/pad_150dp"
        android:layout_alignParentBottom="true"
        android:requiresFadingEdge="vertical"
        android:layout_marginBottom="@dimen/pad_50dp"
        android:fadeScrollbars="true"
        android:fadingEdgeLength="@dimen/pad_120dp"></View>


</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)

android scrollview fading android-recyclerview

2
推荐指数
1
解决办法
2549
查看次数