如何将元素从初始状态移动到右边然后从初始状态移动到左边?(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
最满意答案
我忘了的是用户凭据。 查看更新的代码示例(摘录):
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数据库中主键的所有列名(Find all column names that are primary keys in Firebird database)[2023-05-14]
要选择所有表的主键字段,可以使用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数据库与另一个Firebird数据库同步?(How to sync my Local Firebird Database with another Firebird Database?)[2020-01-06]
AFAICT也是复制品。 AFAICT that's replication too. -
嗯,服务器正在运行吗? 如果将其安装为应用程序并且服务器正在运行,则系统托盘中应该有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 ...
-
Firebird或NexusDB(Firebird or NexusDB)[2022-02-10]
我没有使用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 ...
-
无法运行Firebird(Unable to run Firebird)[2022-08-29]
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 ...