css - Angular 6 - LESS动画在部署后不起作用

标签 css angular typescript less webdeploy

大家早上好! 我对 LESS 动画有疑问。我在 ng build --prod 之后将我的应用程序推送到服务器上,然后浏览器看不到 CSS 动画。它在本地主机上工作,但在部署后不工作,我不知道为什么 :(

本地主机: localhost

我的网站:website

angular.json:

      "options": {
        "outputPath": "dist/website",
        "index": "src/index.html",
        "main": "src/main.ts",
        "polyfills": "src/polyfills.ts",
        "tsConfig": "src/tsconfig.app.json",
        "assets": [
          "src/favicon.ico",
          "src/assets"
        ],
        "styles": [
          "src/styles.less"
        ],
        "scripts": [
          "./node_modules/hammerjs/hammer.min.js",
          "./node_modules/jquery/dist/jquery.min.js",
          "./node_modules/bootstrap/dist/js/bootstrap.min.js"
        ]

和我的关键帧混合:

     .keyframes(rollimg, {
              0% {
                right: -300px;
                opacity: 0;
              }
              50% {
                right: 0;
                opacity: 0.8;
              }
              60% {
              right: -40px;
              }
              100% {
                right: 0;
                opacity: 1;
              }
              });
                  .keyframes (scrollup, {
                          0% {
                            top: 0;}
                        50% {
                          top: 10px;
                        }
                          100% {
                            top: 0;
                          }
                        });

两个动画都不起作用,你能告诉我我做错了什么吗?

最佳答案

好的,我的错 :( 我的 .animation Mixin 不正确 :( 问题解决了

关于css - Angular 6 - LESS动画在部署后不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59245311/

相关文章:

html - 增加div顶部的高度

css - 如何添加冒号(:) between inline list elements?

angular - 面临问题 'A MatDatepicker can only be associated with a single input.' Angular 8 Material

javascript - 这段代码中的 “export default class Render”是什么,为什么要导出和使用它?

reactjs - 如何使用 react-native-testing-library getByRole

javascript - 如何反转 jQuery css 样式?

css - 如何在 CSS 打印样式中标记分页符的出现

css - 通过 typescript 更改按钮单击时的 svg 颜色

javascript - 跨源请求被阻止 : The Same Origin Policy disallows reading the remote resource at http://xxx:xx/register

angular - 类型 'unsubscribe' 上不存在属性 'Observable<DataSnapshot>'