I need to use animation wih compass, so I try to use like said in doc: http://compass-style.org/reference/compass/css3/animation/
I put at top of my file:
@import "compass/css3/animation";
but I have error:
File to import not found or unreadable: compass/css3/animation.
I have the latest version of compass and rails-compass gem, so I don't know where is my mistake?
thx.
Not sure if you have tried this already but hopefully this helps - In the README it says that you should import compass like so:
@import "compass";
@import "your_project/mixins";
@import "your_project/base";
Or, you should use the application.css:
/*
*= require styleguide_full_of_compass_stuff
*/
Finally the README also advises not to include compass in individual files.
I'm waiting the good solution, but pending, I use this fix: http://joshbroton.com/quick-fix-sass-mixins-for-css-keyframe-animations/
hope helpful others.
Try do this
sudo gem install compass
If it not help try to use this compass plugin: https://github.com/ericam/compass-animation
to add it you should to do next steps:
1) run in console
gem install animation --pre
2) add
require 'animation'
in your config.rb
3) add
@import "animation";
in you .scss/.sass file.
--
Hope it's help you!
Cheers
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.