简体   繁体   English

使用jquery cycle2在“缩小”滑块上增加和减少文本的字体大小

[英]increase and decrease the font size of the text on zoom in out slider using jquery cycle2

I used the jquery cycle cycle2 plugin.I want to Increase and decrease the font size of the text content whenever the slides get zoom in and zoom out respectively. 我使用了jquery cycle cycle2插件,每当幻灯片分别放大和缩小时,我都希望增加和减小文本内容的字体大小。 The Images were used get worked nicely. 使用的图像可以很好地工作。

There is an option for animIn and animOut but am not sure about how to make use of the manipulating font size. animIn和animOut有一个选项,但是不确定如何使用操作字体大小。 I need to reduce and increase the font size when the division get shrinked and enlarged automatically. 当分区自动缩小和放大时,我需要减小和增大字体大小。 Because to change font size on screen resize or any click action is possible and I had it. 因为要在屏幕上更改字体大小以调整大小或执行任何单击操作,所以我有了它。 But manipulating font size on automatic zoom in and out needs to work. 但是需要在自动放大和缩小时操作字体大小。

If anyone help this great appreciation for you..... 如果有人帮助您,请感激.....

$('.yourClass').animate({ fontSize : '11pt' });

then make font bigger: 然后将字体变大:

$('.yourClass').animate({ fontSize : '18pt' });

css equivalent works too : CSS等效也可以:

 $('.yourClass').animate({ 'font-size' : '11pt' });

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM