使用CSS创建ReactJ组件,例如轮播
我正在研究最初包含1张卡的React功能组件:
当我填充字段并击中Enter时,我想对其进行动画效果,并使其较小并创建另一个像图片一样:
最后,当我在左侧有一个盒子,另一张盒子在中间,我再次填充数据并击中Enter,我想将小盒子隐藏在左边通过调整大小并从右侧添加新项目的动画从0px宽度开始,而高度则更大,而在迁移到中心的同时如下:
总是看到中心的新框,如果我注册了任何记录,我的尺寸较小。 动画很重要,
我想要的就是像轮播一样的东西。我花了很多时间,但没有得到结果。
我需要CSS英雄帮助我摆脱困境。
感谢所有
I'm working on react functional component that initially contains 1 cards like the following:
When i fill the fields and hit enter, i want to animate this to left and make it smaller and create another one like the picture:
And finally, when i have one box in left side and another in center and again i fill data and hit enter, i want to hide the small box in left with animation and animate filled box to left with resize and add new item from right side with animations that starts with 0px width and height goes larger while moving to center like following:
Always i see the box for new in center and if i have registered any record, i have one previous box with smaller size.
And the animation is important
All that i want is somthing like Carousel. I spent a lot of time but did not get results.
I need the css hero helps to get me out of hole.
Thanks to All
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过4天的努力,终于明白了。我为那些有要求的人回答了我的问题。
这是我的第一个代码段,我无法解决错误。我有一些依赖性材料 - UI和其他一些组件。
如果删除布局并添加依赖,则可以正常工作。
After 4 days of hard work, finally i got it. I answerd my question for those with same requirement.
It's my first code snippet and i could not resolve error. I have some dependancy like material-ui and some other Component.
If you remove Layout and add dependancy, it works fine.