首页 \ 问答 \ 如何将元素从初始状态移动到右边然后从初始状态移动到左边?(How to move element from initial state to right and then from initial state to left?)

如何将元素从初始状态移动到右边然后从初始状态移动到左边?(How to move element from initial state to right and then from initial state to left?)

我在我的页面上有一个手形图标,它指向三个图像。我希望在这个图标上有一个动画,它应该从初始状态移动到右边,然后从初始状态移动到左边,依此类推。单词,它应该涵盖所有三个图像。 我也尝试过自己,它将初始状态移动到右边但不是从初始状态移动到左边。这是我的代码片段,如下所示:

div#skill .logos {
  padding: 20px 0;
}
.logos>img {
  margin-right: 10px;
}
.move {
  position: relative;
  animation: move 2s infinite;
  animation-direction: alternate-reverse;
}
/*Animation on hand*/

@keyframes move {
  0% {
    left: 0px;
    right: 0px;
  }
  50% {
    left: 60px;
    right: 0;
  }
  100% {
    left: 0px;
    right: 60px;
  }
}
<img class="move center-block" src="img/icons/hand-finger-pointing-down.svg" width="60" height="60">
<div class="logos text-center">
  <img src="img/icons/adobe-photoshop.png" width="50" height="50">
  <img src="img/icons/bootstrap-4.svg" width="50" height="50">
  <img src="img/icons/Sublime_Text_Logo.png" width="50" height="50">
</div>

请指导我,并提前感谢你!


There is a hand icon that I am using on my page and It is directing to three images.I want an animation on this icon, where It should move from initial state to right, then from initial state to left and so forth.In other words, it should cover all the three images. I have tried myself also, it is moving initial state to right but not from initial state to left.Here is my code snippet down below:

div#skill .logos {
  padding: 20px 0;
}
.logos>img {
  margin-right: 10px;
}
.move {
  position: relative;
  animation: move 2s infinite;
  animation-direction: alternate-reverse;
}
/*Animation on hand*/

@keyframes move {
  0% {
    left: 0px;
    right: 0px;
  }
  50% {
    left: 60px;
    right: 0;
  }
  100% {
    left: 0px;
    right: 60px;
  }
}
<img class="move center-block" src="img/icons/hand-finger-pointing-down.svg" width="60" height="60">
<div class="logos text-center">
  <img src="img/icons/adobe-photoshop.png" width="50" height="50">
  <img src="img/icons/bootstrap-4.svg" width="50" height="50">
  <img src="img/icons/Sublime_Text_Logo.png" width="50" height="50">
</div>

Please guide me and thank you in advance!


原文:https://stackoverflow.com/questions/39082220
更新时间:2023-02-20 16:02

最满意答案

我忘了的是用户凭据。 查看更新的代码示例(摘录):

ISC_STATUS_ARRAY status;               /* status vector */
isc_db_handle   newdb = NULL;          /* database handle */
isc_tr_handle   trans = NULL;          /* transaction handle */
AnsiString create_db;
create_db.printf("CREATE DATABASE '%s' USER '%S' PASSWORD '%S'", db_path.c_str(), MainForm->currentUser.name, MainForm->currentUser.password);
long sqlcode;
UnicodeString msg;

if (pisc_dsql_execute_immediate(status, &newdb, &trans, 0, create_db.c_str(), 1, NULL))
{
    sqlcode = pisc_sqlcode(status);
    msg.printf(L"Operation 'CREATE DATABASE' failed with sqlcode %ld.\r\nApplication will exit now.", sqlcode);
    throw Exception(msg.c_str());
}

What I forgot were user credentials. See updated code sample (excerpt):

ISC_STATUS_ARRAY status;               /* status vector */
isc_db_handle   newdb = NULL;          /* database handle */
isc_tr_handle   trans = NULL;          /* transaction handle */
AnsiString create_db;
create_db.printf("CREATE DATABASE '%s' USER '%S' PASSWORD '%S'", db_path.c_str(), MainForm->currentUser.name, MainForm->currentUser.password);
long sqlcode;
UnicodeString msg;

if (pisc_dsql_execute_immediate(status, &newdb, &trans, 0, create_db.c_str(), 1, NULL))
{
    sqlcode = pisc_sqlcode(status);
    msg.printf(L"Operation 'CREATE DATABASE' failed with sqlcode %ld.\r\nApplication will exit now.", sqlcode);
    throw Exception(msg.c_str());
}

相关问答

更多
  • 要选择所有表的主键字段,可以使用Firebird系统表,如: select ix.rdb$index_name as index_name, sg.rdb$field_name as field_name, rc.rdb$relation_name as table_name from rdb$indices ix left join rdb$index_segments sg on ix.rdb$index_name = sg.rdb$index_name ...
  • 我忘了的是用户凭据。 查看更新的代码示例(摘录): ISC_STATUS_ARRAY status; /* status vector */ isc_db_handle newdb = NULL; /* database handle */ isc_tr_handle trans = NULL; /* transaction handle */ AnsiString create_db; create_db.printf("CREATE ...
  • 使用此代码,您可以创建数据库: ... using FirebirdSql.Data.Firebird; ... FbConnectionStringBuilder builder = new FbConnectionStringBuilder(); builder.DataSource = "COMPUTER_WITH_DATABASE"; builder.UserID = "SYSDBA"; builder.Password = "m*******y"; builder.Database = @"c: ...
  • 嗯,服务器正在运行吗? 如果将其安装为应用程序并且服务器正在运行,则系统托盘中应该有FireBird图标。 如果没有则启动服务器,即执行命令行 fbserver.exe -a Well, is the server running? If you installet it as a application and server is running then there should be FireBird icon in the system tray. If there isn't then start ...
  • 我没有使用Nexus tbh,但我使用Firebird常规(客户端/服务器),我非常喜欢它。 它体积小,速度快,试图成为SQL92,管理工具非常棒(参见IBExpert,它们也有免费版) 嵌入式版本应该与普通版本一样好。 I Haven't used Nexus tbh, but I use Firebird regulary (Client/Server) and I am absolutely loving it. It's small, fast, tries-to-be SQL92 complian ...
  • 你对“由发电机驱动的自动增量int场”是什么意思? 最新的稳定版本2.5不支持自动增量字段,您必须手动创建触发器以使用生成器填充ID字段...如果您还没有这样做,那么这可能是没有插入任何内容的原因(失败)生成PK字段)。 What do you mean with "autoincrement int field powered by a generator"? The latest stable release, 2.5 doesn't support autoincrement fields, you ...
  • AFAIK EMS SQL使用fbclient.dll(或它周围的包装器)。 如果你想要的只是访问数据库,我建议你使用TCP协议而不是本地协议。 要做到这样连接: c:\>isql localhost:c:\path\to\db.fdb -u sysdba -p masterkey 除非您正在避免使用TCP或者计算机没有启用本地接口,否则它将为您完成工作。 Several months later, the NT server was somewhat abruptly retired when it d ...
  • 我假设您实际安装了Firebird并且您的Firebird作为服务运行。 运行Firebird服务的用户帐户无权访问您的用户配置文件,因此无法在C:\Users\waqas\Desktop\MOBILESTORE.fdb打开数据库文件。 将文件放在所有用户都可以访问的位置(或者特别是链接到Firebird服务的用户),例如C:\Databases\ 。 也就是说,我实际上会期望这种情况几乎立即导致错误,因此可能是一个不同的问题。 编辑 您在注释中指出,您收到java.lang.ClassNotFoundEx ...
  • 如果您在同一时间更新多个事务中的同一行,则会出现此错误。 Firebird中没有字段级锁定,因为整个行都是版本化的。 唯一可用的解决方案是:不要执行此操作,更新单个查询中的所有字段,添加重试机制或不同时并行触发不同字段的更新。 You get this error if you are updating the same row in multiple transactions at the same time. There is no such thing as field level locking i ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。